notebook, note同步

note待同步内容, 图片
This commit is contained in:
life
2015-01-22 00:41:49 +08:00
parent 1674b9f91d
commit 1d015642a6
8 changed files with 339 additions and 73 deletions

16
node_modules/common.js generated vendored
View File

@@ -18,6 +18,22 @@ var Common = {
this._uuid++;
return ((new Date()).getTime()) + '_' + this._uuid;
},
isOk: function(ret) {
if(!ret) {
return ret;
}
// 数组
if('length' in ret) {
return true;
}
if(ret == 'object') {
if(!ret.Ok) { // 指明了Ok
return false;
}
return true;
}
return false;
},
// FileReaderWeb 是 web上的FileReader, 可能与nodejs这个有冲突
pasteImage: function(event, FileReaderWeb, callback) {
var me = this;