本文所有Demo的运行环境为nodeJS, 参考:让nodeJS支持ES6的词法 babel的安装和使用 ; 函数的默认值: 如果有参数 ,那就用参数, 如果没有参数, 那就用默认的参数; ajax的请求经常要做这些判断, ES6规定了新的表达式, 让判断参数的逻辑更加简单; 如果调用函数的时候不想 ...
分类:
其他好文 时间:
2016-05-18 01:45:25
阅读次数:
371
遍历访问文件夹: 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
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
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
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
$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
/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是使用静态作用域 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代码 /// <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