摘要: 1、(单项选择)对于下列程序运行结果,符合预期的是 function f1() { console.time('time span'); } function f2() { console.timeEnd('time span'); } setTimeout(f1, 100); setTimeout 阅读全文
posted @ 2016-03-24 16:21 归尘2016 阅读(594) 评论(0) 推荐(0)
摘要: /** 在字符串末尾追加字符串 **/ String.prototype.append = function (str) { return this.concat(str); } /** 删除指定索引位置的字符,索引无效将不删除任何字符 **/ String.prototype.deleteCharAt = function (index) { if (index = this.... 阅读全文
posted @ 2016-03-24 16:02 归尘2016 阅读(1045) 评论(0) 推荐(0)
摘要: 1.文档加载完成执行函数 $(document).ready(function(){ alert("开始了"); }); 2.添加/删除CSS类 $("#some-id").addClass("NewClassName"); $("#some-id").removeClass("ClassNameT 阅读全文
posted @ 2016-03-24 10:24 归尘2016 阅读(167) 评论(0) 推荐(0)
摘要: 这是项目中用到的公告滚动,我记录下来 阅读全文
posted @ 2016-03-24 10:20 归尘2016 阅读(516) 评论(0) 推荐(0)