form 组件
表单
[img]http://p3.pstatp.com/large/f0100022ed0893d811a[/img]
主要属性:
[img]http://p3.pstatp.com/large/f0100022eebc90ef8dd[/img]
效果图:
[img]http://p3.pstatp.com/large/e9700048f8609f7a2a8[/img]
form.wxml添加代码:
[img]http://p2.pstatp.com/large/e970004901b2d9d979e[/img]
form.js添加代码:
[img]http://p3.pstatp.com/large/efa0000637936be051d[/img]
form.wxss添加代码:
[img]http://p1.pstatp.com/large/e940006fc6b2d0ee5fa[/img]
注意:
form表单组件 是提交form内的所有选中属性的值,
注意每个form表单内的组件都必须有name属性指定否则提交不上去,
button中的type两个submit,reset属性分别对应form的两个事件。
原文链接:http://bbs.jointforce.com/topic/23116
表单
[img]http://p3.pstatp.com/large/f0100022ed0893d811a[/img]
主要属性:
[img]http://p3.pstatp.com/large/f0100022eebc90ef8dd[/img]
效果图:
[img]http://p3.pstatp.com/large/e9700048f8609f7a2a8[/img]
form.wxml添加代码:
[img]http://p2.pstatp.com/large/e970004901b2d9d979e[/img]
form.js添加代码:
[img]http://p3.pstatp.com/large/efa0000637936be051d[/img]
form.wxss添加代码:
[img]http://p1.pstatp.com/large/e940006fc6b2d0ee5fa[/img]
注意:
form表单组件 是提交form内的所有选中属性的值,
注意每个form表单内的组件都必须有name属性指定否则提交不上去,
button中的type两个submit,reset属性分别对应form的两个事件。
原文链接:http://bbs.jointforce.com/topic/23116