上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: http://www.h5course.com/plus/view.php?aid=256查找字符串中出现最多的字符将一个字符串中,出现次数最多的数字提取出来,最后输出出现最多的字符是什么,出现的次数是多少。题目剖析字符串方法的解题思路:从最初开始进行字符的截取,获取到第一个字符之后,根据这个字符进... 阅读全文
posted @ 2015-12-08 17:46 darr 阅读(4343) 评论(0) 推荐(0) 编辑
摘要: 1、(jquery) jQuery.unique( array )返回: Array 描述: 删除数组中重复元素。只处理删除DOM元素数组,而不能处理字符串或者数字数组(试了下,有的版本应该可以) 2、(jQuery) var arr = ["1","2","3","4","5","4","3"]; 阅读全文
posted @ 2015-12-08 11:43 darr 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 注意:Math 对象是一个固有的对象,无需创建它,直接把 Math 作为对象使用就可以调用其所有属性和方法。这是它与Date,String对象的区别。Math对象的属性 --Math对象包含的属性大都是数学计算中的可能会用到的一些特殊值。运行结果:3.14159265358979315Math对象方... 阅读全文
posted @ 2015-12-02 18:44 darr 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://www.alloyteam.com/2012/10/commonly-javascript-design-pattern-observer-mode/jq中的应用 :$('#foo').on('custom', function(event, param1, param2) { al... 阅读全文
posted @ 2015-12-02 18:14 darr 阅读(165) 评论(0) 推荐(0) 编辑
摘要: backbone:http://www.cnblogs.com/darr/p/4625733.html什么是MVC模式模式:一种解决问题的方法设计模式 :工厂模式、适配器模式、观察者模式等框架模式 :MVC、MVP、MVVM等(框架模式里有很多设计模式)MVC:M-ModelV-ViewC-Cont... 阅读全文
posted @ 2015-12-02 18:00 darr 阅读(168) 评论(0) 推荐(0) 编辑
摘要: http://yujianshenbing.iteye.com/blog/1748826如果将一个Model对象比喻成数据库中的一条记录,那么Collection就是一张数据表。它表示为一个模型集合类,用于存储和管理一系列相同类型的模型对象。requirejs.config({ baseUrl... 阅读全文
posted @ 2015-12-01 18:17 darr 阅读(180) 评论(0) 推荐(0) 编辑
摘要: requirejs.config({ baseUrl: 'js/lib', paths:{ app: '../app' }})// Start the main app logic.//requirejs===define===require源码:var requir... 阅读全文
posted @ 2015-12-01 15:48 darr 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 恩http://www.ruanyifeng.com/blog/2010/04/using_this_keyword_in_javascript.html 阅读全文
posted @ 2015-11-30 13:46 darr 阅读(185) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ZJAJS/archive/2013/04/25/3042625.htmlinstanceof操作符判断对象是否是某个构造函数的实例的方法就是检测该对象的__proto__对象是否指向的是该构造函数的prototype对象!如果原型链当前节点的__pro... 阅读全文
posted @ 2015-11-30 13:00 darr 阅读(340) 评论(0) 推荐(0) 编辑
摘要: function Ff(){}//undefinedFf.prototype={a:"ss"}//Object {a: "ss"}var f1= new Ff()//undefinedFf.prototype.constructor//Object() { [native code] }f1.con... 阅读全文
posted @ 2015-11-29 13:21 darr 阅读(338) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页