yii创建的文本框带默认值如何取消

WBOY
Release: 2016-06-13 09:58:50
Original
809 people have browsed it

yii创建的文本框带默认值怎么取消
yii自带的创建表单操作,创建出来的文本框带默认值
例如,input value="0.00"
怎么把value的值去掉

------解决方案--------------------
你不要value就是了。
------解决方案--------------------
在模型的rule函数里把这个字段的default 属性这个数组去掉

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template