摘要: http://ejohn.org/blog/javascript-micro-templating/http://itindex.net/detail/39743-%E9%80%89%E6%8B%A9-javascript-%E6%A8%A1%E6%9D%BF 阅读全文
posted @ 2015-08-24 14:06 darr 阅读(127) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function(){ //限制字符个数 $(".act_p2").each(function(){ var maxwidth = 20; if($(this).text().length > max... 阅读全文
posted @ 2015-08-24 13:53 darr 阅读(193) 评论(0) 推荐(0) 编辑
摘要: $( document ).ready()https://learn.jquery.com/using-jquery-core/document-ready/A page can't be manipulated safely until the document is "ready." jQuer... 阅读全文
posted @ 2015-08-24 12:29 darr 阅读(237) 评论(0) 推荐(0) 编辑