摘要: // oSort是排序类型数组, 'chinese-asc'是自己定义的类型的排序(*-asc || *-desc)名称 // 插件应该会根据表格中的内容的类型(string, number, chinese)进行比较排序, // 如果以chinese类型来排序则用oSort['chinese-as 阅读全文
posted @ 2017-01-10 19:43 教父123 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; 阅读全文
posted @ 2017-01-10 17:34 教父123 阅读(230) 评论(0) 推荐(0) 编辑
摘要: function add(){ return 5; } var timer=setInterval(add,100); 如果只是这样简单的写是没什么问题的,需要注意的是add不要加(),当函数作为参数时,不要加(),加括号代表执行; 一般我们在业务开发中,需要函数传参,这个时候我们改怎么写呢? fu 阅读全文
posted @ 2017-01-10 17:33 教父123 阅读(2461) 评论(0) 推荐(0) 编辑