码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
Javascript创建对象 -- 工厂模式
1 function createPerson(name, age) { 2 var o = new Object(); 3 o.name = name; 4 o.age = age; 5 o.sleep = function() { 6 alert...
分类:编程语言   时间:2014-10-08 18:03:45    阅读次数:151
模拟下拉框
//模拟下拉框$(".Js_dropMod").each(function(){ var _this=$(this) //_this.find(".Js_hiddenVal").val("") var curObj=_this.find(".Js_curVal"); if(curObj...
分类:其他好文   时间:2014-10-08 17:02:35    阅读次数:224
^_^getElementsByClassName
if (!document.getElementsByClassName) { document.getElementsByClassNameForMobile = function(search) { var d = document, elements, pattern, i...
分类:其他好文   时间:2014-10-08 16:55:05    阅读次数:134
windows live writer 测试
这是一个一篇测试日志! Technorati 标记: 1 text $(document).ready(function() { //鼠标移到新增消息层绑定事件 $("#messageListDiv").delegate(".singleMessageDiv,.multiMsgDiv", "mous...
分类:Windows程序   时间:2014-10-08 16:53:15    阅读次数:253
Application binary interface and method of interfacing binary application program to digital computer
An application binary interface includes linkage structures for interfacing a binary application program to a digital computer. A function in a reloca...
分类:移动开发   时间:2014-10-08 16:41:45    阅读次数:302
Javascript创建对象 -- 构造函数模式
1 function Person(name, age) { 2 this.name = name; 3 this.age = age; 4 this.eat = function() { 5 alert("eating..."); 6 } 7 } ...
分类:编程语言   时间:2014-10-08 16:37:45    阅读次数:148
ExtJS ComboBox之 2级联动
Ext.onReady(function () {/*表格数据源绑定*/var menuStore = Ext.create('Ext.data.Store', {pageSize:10,fields: ['id','','sm_name', 'sm_url', 'fatherGuid','fath...
分类:Web程序   时间:2014-10-08 15:58:05    阅读次数:194
RichView段落缩进
段落缩进在输入文字的过程中,如果按下回车键,新成生的段落会与当前段落对齐,下面例子只处理了回车,如果要实现自动换行时也达到同样效果,可以在其文字录入事情中作相同处理!实现过程主要是通得到当前光标所在段落(行)前面的空格数,然后在新段落头中插入同相的数目的空格function GetLeadingSp...
分类:其他好文   时间:2014-10-08 15:46:35    阅读次数:160
jquery-63-68讲
jquery63_basic_03 $(function(){ //目前是一个javascript的对象,对于该对象而言,无法使用jquery的方法 var hello = document.getElementById("hello"); //是js的对象,不能使用jquery的方法 // hel...
分类:Web程序   时间:2014-10-08 15:38:35    阅读次数:274
JavaScript 匹配字符串偶数位置的字符 及匹配 $ 符号
已知一个字符串#####,现需要替换偶数位置的#为&。function replaceDemo(){ var s = "1#2#3#4#5#"; var regex = /#/g; var index = 1; s=s.replace(regex,functi...
分类:编程语言   时间:2014-10-08 14:12:45    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!