会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
dongxiaolei
博客内容仅作为个人学习笔记使用!!
博客园
首页
新随笔
联系
订阅
管理
2017年1月5日
js控制 input框中输入数字时,累计求和
摘要: $('.cc input').bind('input propertychange', function(){ var total = 0; $("input").each(function(){ total+=(parseFloat($(this).val())?parseFloat($(this).val()):0); }); ...
阅读全文
posted @ 2017-01-05 16:08 dongxiaolei
阅读(5133)
评论(0)
推荐(0)
编辑
公告