随笔分类 -  JS

摘要:原文:http://www.jb51.net/article/85463.htm 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 function accDiv 阅读全文
posted @ 2017-10-23 17:23 个子 阅读(592) 评论(0) 推荐(0)
摘要:<td> <input type="checkbox" name="is_check" id="is_check" value="${(o.is_check)!}" onblur="onblurs($(this));" <#if o.is_check == 1>disabled="disabled" 阅读全文
posted @ 2017-10-19 16:30 个子 阅读(1207) 评论(0) 推荐(0)
摘要:原文出处:http://www.cnblogs.com/446557021/archive/2011/10/13/2211047.html js 四舍五入函数 toFixed(),里面的参数 就是保留小数的位数。 <script language="javascript"> document.wri 阅读全文
posted @ 2017-10-12 14:28 个子 阅读(478) 评论(0) 推荐(0)
摘要:参考文档:http://www.cnblogs.com/hanyining/p/5919690.html 阅读全文
posted @ 2017-09-29 16:18 个子 阅读(1185) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-09-27 15:46 个子 阅读(210) 评论(0) 推荐(0)
摘要:http://www.runoob.com/jquery/event-on.html http://api.jquery.com/on/ 阅读全文
posted @ 2017-05-03 12:05 个子 阅读(326) 评论(0) 推荐(0)
摘要:注意:live() 方法在 jQuery 版本 1.7 中被废弃,在版本 1.9 中被移除。请使用 on() 方法代替。 <input type="text" onblur="onblus(this)" onkeyup="this.value=this.value.replace(/\D/g,'') 阅读全文
posted @ 2017-05-03 11:56 个子 阅读(18355) 评论(0) 推荐(0)
摘要:window.onload 必须等到页面内包括图片的所有元素加载完毕后才能执行。 整个页面的document全部加载完成以后执行。不幸的这种方式不仅要求页面的DOM tree全部加载完成, 而且要求所有的外部图片和资源全部加载完成。更不幸的是,如果外部资源,例如图片需要很长时间来加载, 那么这个js 阅读全文
posted @ 2017-04-19 20:15 个子 阅读(187) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-04-13 16:16 个子 阅读(251) 评论(0) 推荐(0)