WXYOO1's recent timeline updates
WXYOO1

WXYOO1

V2EX member #16539, joined on 2012-02-09 14:00:43 +08:00
WXYOO1's recent replies
深圳的医疗比背景和杭州都方便很多。尤其杭州,去个医院麻烦得要死。
杭州有研发中心了?
推荐使用 line-reader 这个包 直接读行,前 1000 行不处理,后面开始写入新文件
```
var lineReader = require('line-reader');

lineReader.eachLine('file.txt', function(line, last) {
console.log(line);
});
```
Mar 15, 2016
Replied to a topic by WXYOO1 Node.js 有 ACM 竞赛系统系统用 NodeJs 实现吗
@LedChang 哦哦。误解了。我说的不是用 NodeJs 语言实现这个测评系统。而是这个系统可以测评 NodeJs 写的算法题目。
这个真心不明觉厉
问题一:像 @Arrowing 所说的, Js 自带的方法要考虑上下文, document.getElementsByTagName 必须绑在全局上。
另外扩展 Js 本身的一些方法一般是重新定义一下:比如像一些 ie 兼容的扩展方法等
var gTag = function (tagName ){
return document.getElementsByTagName (tagName );
};
gTag ('p');


问题二:两个关注点:
1.prototype 和 call\apply
function Old (){}

Old.prototype = {
name: "old name",
run: function (){
console.log ("Name is: " + this.name );
}
}

var o = new Old;

var New = {
name: "new name"
};

o.run (New ); // Name is (old old old )/3 遍 name
//o.run 并没有接受参数的地方,你应该要写成 o.run.call (New );吧?
//1. o.run (New ); 打印 old name 的原因是 o.run o 从类 Old 定义而来,而 Old 的 prototype.name = “ old name ”;
//2. 若你本意是 o.run.call (New ) 则打印 Name is new name 此处指针会指向 New 对象。
Aug 5, 2015
Replied to a topic by ARjason 求职 大三学生党 php 方向求实习岗位,目标北京
年轻能折腾,有前途
May 1, 2015
Replied to a topic by smilefion 职场话题 只想吐槽下大疆的 hr
同样的经历,不过我做了一个类似品格调查的问卷后就没信了。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3743 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 04:45 · PVG 12:45 · LAX 21:45 · JFK 00:45
♥ Do have faith in what you're doing.