- 浏览: 9554 次
- 性别:
- 来自: 大连
最新评论
文章列表
var oriData = [
{myId:0,myParent:null,myTitle:'text0'},
{myId:1,myParent:0,myTitle:'text1'},
{myId:2,myParent:0,myTitle:'text2'},
{myId:3,myParent:1,myTitle:'text3'},
{myId:4,myParent:1,myTitle:'text4'},
...
var oriData = [
{myId:0,myParent:null,myTitle:'text0'},
{myId:1,myParent:0,myTitle:'text1'},
{myId:2,myParent:0,myTitle:'text2'},
{myId:3,myParent:1,myTitle:'text3'},
{myId:4,myParent:1,myTitle:'text4'},
...
<html>
<head>
<title>TETRIS AI</title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta ...
本来写在帖子里了,但是感觉应该存个底,放这吧,呵呵。
论坛帖子地址:http://www.iteye.com/topic/842542
这个问题其实之前困扰了我很久。如今终于想明白了,特来分享,如果有错误的地方,请帮忙指正,我会随时回来修正滴。
一、迷思!由一段代码引发的疑惑
请看如下代码:
for(var i=0;i<3;i++) {
console.log(j+","+k);
for(var j=0;j<3;j++) {
var k = j+1;
}
}
console. ...
var net = require('net');
var SmtpClient = exports.SmtpClient =function(host,port,useSecure){
this.host = host;
this.port = port||25;
this.socket = new net.Stream();
var self = this;
this.operationing = [];
this.socket.addListener('data',function(data){
var dataStr = data.toString();
...