码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
ES6新特性:Function函数扩展, 扩展到看不懂
本文所有Demo的运行环境为nodeJS, 参考:让nodeJS支持ES6的词法 babel的安装和使用 ; 函数的默认值: 如果有参数 ,那就用参数, 如果没有参数, 那就用默认的参数; ajax的请求经常要做这些判断, ES6规定了新的表达式, 让判断参数的逻辑更加简单; 如果调用函数的时候不想 ...
分类:其他好文   时间:2016-05-18 01:45:25    阅读次数:371
php,常见的面试
遍历访问文件夹: function read_folder_directory($dir) { $listDir = array(); if($handler = opendir($dir)) { while (($sub = readdir($handler)) !== FALSE) { if ( ...
分类:Web程序   时间:2016-05-18 00:18:57    阅读次数:152
Resting state brain networks derived from spatial ICA - an individual case
Reference: Xin D, Biswal B B. Dynamic brain functional connectivity modulated by resting-state networks.[J]. Brain Structure & Function, 2013, 220(1): ...
分类:Web程序   时间:2016-05-18 00:08:38    阅读次数:221
js bom中浏览器兼容问题判断代码
var btn = document.getElementById('d1');if(addEventListener undefined){ btn.attachEvent('onclick',function () { alert('版本小于IE8') })}else{ btn.addEvent ...
分类:Web程序   时间:2016-05-18 00:06:26    阅读次数:279
AJAX原生态编写
2.get请求 Js代码 function get(){ var req = createXMLHTTPRequest(); if(req){ req.open("GET", "http://test.com/?keywords=手机", true); req.onreadystatechange  ...
分类:Web程序   时间:2016-05-18 00:05:01    阅读次数:276
判断是否存在子节点
Object.prototype.exist = function(){ if(typeof this !='undefined' && this.length>=1){ return true; } return false; }; 不解释 Object.prototype.exist = fun ...
分类:其他好文   时间:2016-05-18 00:02:26    阅读次数:142
TP框架数组去重后分页
$view=D(‘HistoryTest‘) ->alias("asa") ->join("qxy_testasbona.object=b.id") ->field("b.title,b.id,a.uid") ->order(‘a.iddesc‘) ->where("a.titlelike‘%".$key."%‘") ->select(); $view=$this->multi_unique($view);//调用去重方法 $count=count($..
分类:编程语言   时间:2016-05-17 22:52:05    阅读次数:962
gcc: multiple definition of [转]
/home/tace/openav/source/SeamlessMessage/CPaoFlt.o: In function `CPaoFlt::get_m_strPrmair() const':CPaoFlt.cpp:(.text+0x0): multiple definition of `CP ...
分类:其他好文   时间:2016-05-17 21:16:18    阅读次数:494
JS的动态变量与静态变量(与JS的角度无关的例子)
JS是使用静态作用域 var x = 10; function foo(){ alert(x) }; function bar(){ var x = 20; foo() }; bar(); 静态作用域: 最后foo函数会在全局作用域找变量x并alert; 动态作用域: 调用foo函数之后会找站最近的 ...
分类:Web程序   时间:2016-05-17 21:12:13    阅读次数:202
Jquery分页功能
Jquery代码 /// <reference path="jquery-1.9.1-vsdoc.js" />//锚点var anchor="#apage";$(function(){ pagerFun(); $("#btnSearch").click(function(){ var name=$. ...
分类:Web程序   时间:2016-05-17 19:18:08    阅读次数:384
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!