摘要: 英文原文地址:http://dmitry.baranovskiy.com/post/91403200 Dmitry Baranovskiy 的博客中有篇文章(http://dmitry.baranovskiy.com/post/91403200),其中有五段小代码,用来测试是否理解 JavaScri 阅读全文
posted @ 2017-11-17 16:01 time_on 阅读(83) 评论(0) 推荐(0) 编辑
摘要: function renameProperties(sourceObj, replaceList, destObj) { destObj = destObj || {}; // for each property in source object $.each(sourceObj, function(key) { // if the property re... 阅读全文
posted @ 2017-11-17 15:52 time_on 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1、网页中常常看见有这样的标记,他们是清浏览器缓存用的啊,记录下来,方便以后查询,以免忘记 PS:清除浏览器中的缓存,它和其它几句合起来用,就可以使你再次进入曾经访问过的页面时,ie浏览器必须从服务端下载最新的内容,达到刷新的效果。 2、这个标签是什么作用? 就比如你百度某一些东西,只知道某些特征, 阅读全文
posted @ 2017-11-17 15:49 time_on 阅读(143) 评论(0) 推荐(0) 编辑
摘要: //第1种写法 function Circle(r) { this.r = r; } Circle.PI = 3.14159; Circle.prototype.area = function () { return Circle.PI * this.r * this.r; } var c = new Circle(1.0); alert(c.area()); //第2种写法 ... 阅读全文
posted @ 2017-11-17 11:36 time_on 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1判断select选项中 是否存在Value="paraValue"的Item 2向select选项中 加入一个Item 3从select选项中 删除一个Item 4删除select中选中的项 5修改select选项中 value="paraValue"的text为"paraText" 6设置sel 阅读全文
posted @ 2017-11-17 11:33 time_on 阅读(214) 评论(0) 推荐(0) 编辑