js
文章平均质量分 85
huazicomeon
安安静静做一只技术宅
展开
-
js中document.getElementById("id").value+1问题
document.getElementById("id").value的数据类型是不确定的如果你是要相加用这样的写法比较好document.getElementById("id").value=document.getElementById("id").value*1+1;字符串拼接的话用这个document.getElementById("id").value=document.原创 2016-07-16 22:02:13 · 6944 阅读 · 0 评论 -
js监控输入框变化(input propertychange change)
今天做网页要用到监听输入框变化,找到了几种不同方案,做一下记录,以下示例可直接粘贴到html文件在本地执行预览。原创 2018-03-28 14:23:24 · 17571 阅读 · 0 评论