1.input type=“number”
删除小数点后的数字,光标会跑到小数点的前面
解决:
应用type=“tel”
2.文本域textarea高度的自适应
解决:
获取dom节点,应用方法,scrollHeight 默认值15
autoTextAreaHeight(o) {
//o.style.height = o.scrollTop + o.scrollHeight + "px";
o.style.height = "auto";
o.style.height = o.scrollHeight + "px";
}