textarea的placeholder的BUG
1、textarea的placeholder绑定DATA中的变量,在页面第一次打开时placeholder为空,需要点击输入框,并且聚焦后才能绑定。
2、placeholder的内容变成了绝对定位,请注意查看下图:“你不想说点什么?”
2 回复
终端类型 华为MATE9
wml:
< textarea name = "pinglun" class = 'textarea' placeholder = "{{pinglunPlaceHolder}}" cursor-spacing = "5" fixed maxlength = "-1" style = '' auto-height = "{{autoheight}}" focus = "{{pinglunFocus}}" show-confirm-bar = '{{false}}' bindlinechange = "textareaLinechange" bindfocus = 'pinglunInput' bindtap = 'pinglunfocus' ></ textarea > |
JS:
data: { pinglunFocus: false , //评论的聚焦 autoheight: false , //写评论的textarea是否自动增高 pinglun: '' , pinglunPlaceHolder: '不想说点什么?' }, |