Other
其他常用小工具
Como.extend
扩展Como里面的属性和方法
Como.extend({ getMyName : function(){ return "kevin"; } }); var name = Como.getMyName(); var name1 = $.getMyName();
Como.fn.extend
扩展Como Dom对象(对象选择器返回)的属性和方法
Como.fn.extend({ getAttr : function(name){ return this[0][name]; } }); var value = $("#test").getAttr("id");
Como.isFunction & $.isFunction
检查是否为函数
Como.isFunction('111'); //false $.isFunction(function test(){}); //true