码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
函数表达式
函数表达式是javaScript中一个既强大又容易令人困惑的特性,在javaScript中定义函数的方式有两种,一种是函数声明,一种是函数表达式。函数声明的语法是这样的。function functionName(arg0, arg1) { }首先是function关键字,然后是函数的名字,除过ie的主流浏览器都给函数定义了一个非标准的name属性,通过这个属性可以访问到给函数指定的名字。这个属性的...
分类:其他好文   时间:2016-05-19 01:36:11    阅读次数:191
前端页面内含外显相关知识
页面显示: 对于页面上筛选条件有下拉框加载的,直接下对应显示时加载 { text : '产品线', dataIndex : 'entorgid', align : 'center', width : 150, renderer:function(value,metaData,record ,rowI ...
分类:其他好文   时间:2016-05-19 01:26:05    阅读次数:243
[LeetCode] Intersection of Two Arrays 两个数组
Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element i ...
分类:编程语言   时间:2016-05-19 01:22:37    阅读次数:189
varchar2_to_blob,应用向数据库更新LOB字段时的超时问题
将字符串转换为BLOB类型数据,写入服务器。 1,首先利用to_clob函数把varchar2字段转成 clob字段。 2 利用c2b上面函数将clob转成blob。 即: c2b(to_clob(varchar2字段)) CREATE OR REPLACE FUNCTION C2B (b IN C... ...
分类:数据库   时间:2016-05-19 00:05:15    阅读次数:240
今天终于学会了下拉刷新,上拉刷新
<divid="megBox"><divid="refreshbar"style="height:0">下拉刷新。。</div></div>vartouchPoint={Y:0,Loading:false}functionInitTouch(){varbox=document.getElementById("megBox");box.addEventListener("touchstart",function(target){touchPoint.Y..
分类:其他好文   时间:2016-05-18 22:11:37    阅读次数:317
mysql grant命令
grant 作用在存储过程、函数上: grant execute on procedure testdb.pr_add to 'dba'@'localhost' grant execute on function testdb.fn_add to 'dba'@'localhost' 查看当前用户(自 ...
分类:数据库   时间:2016-05-18 21:51:16    阅读次数:178
JavaScript编码规范
JavaScript编码规范 1 命名 1.1 变量使用Camel命名法 示例: var loadingModules = {}; 1.2 常量使用全部字母大写,单词间下划线分隔的命名方式 示例: var HTML_ENTITY = {}; 1.3 函数使用Camel命名法 示例: function ...
分类:编程语言   时间:2016-05-18 21:47:30    阅读次数:241
jQuery源码分析--event事件绑定(上)
上文提到,jquery的事件绑定有bind(),delegate()和one()以及live()方式。我用的jQuery2.1.3版本,live()已经被废弃了。bind(),delegate()和one()的内部源码。//7491行 bind: function( types, data, fn ) { return this.on( types, null, data, fn )...
分类:Web程序   时间:2016-05-18 19:43:08    阅读次数:298
Javascript基础知识盲点总结——对象
一、定义对象的基本格式: var hero = { breed: ‘Turtle’, occupation: ’Ninja’, talk: function(){ alert(“A!!”); } author: { firstname: ‘Martin’, lastname: ‘Lu’ } } 属性名加不加引号都可以,但是当属性名有保留字或特殊字符(空格等...
分类:编程语言   时间:2016-05-18 18:33:23    阅读次数:169
237. Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - ...
分类:其他好文   时间:2016-05-18 17:35:32    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!