阅读644 返回首页    go 阿里云 go 技术社区[云栖]


Struts表单标签带来的表单元素id的变化

 

 

<s:form action="student/stu_tosave" theme="simple">

<s:textfield name="stu.name"/>

</s:form>

 

 

用firebug可以观察到,生成的静态页面该标签如下:

 

<input name="stu.name"/>

 

注意,id起了变化。那么我们在用js或者jquery取值的时候要多加小心了。

最后更新:2017-04-02 06:52:22

  上一篇:go org.hibernate.AnnotationException: No identifier specified for entity
  下一篇:go jQuery学习笔记(二)选择器 事件