send changes for notebook

This commit is contained in:
life
2015-01-25 13:24:57 +08:00
parent 93e5d7be6e
commit a137aada9f
12 changed files with 3122 additions and 30 deletions

12
test.js
View File

@@ -12,11 +12,13 @@ Notebook.addNotebook("3", "工作");
Notebook.addNotebook("4", "life2", "1");
*/
// Notebook.reCountNotebookNumberNotes('54bb2e89c596f2239a000000');
Api.addNotebook({
Title: "哈哈"
}, function() {});
// Api.auth('c@a.com', 'abc123');
var content = '<img src="http://localhost:9000/api/file/getImage?fileId=54c2083f99c37bea5f000001"> <img src="http://localhost:9000/api/file/getImage?fileId=54c2083f99c37bea5f000001">' + "\n" + '<img src="http://localhost:9000/api/file/getImage?fileId=54c2083f99c37bea5f000001">';
var reg = new RegExp('<img *src="' + Api.leanoteUrl + '/api/file/getImage', 'g');
content = content.replace(reg, '<img src="' + Server.localUrl + '/api/file/getImage');
console.log(content);
// var content = '<img src="http://localhost:9000/api/file/getImage?fileId=54c2083f99c37bea5f000001"> <img src="http://localhost:9000/api/file/getImage?fileId=54c2083f99c37bea5f000001">' + "\n" + '<img src="http://localhost:9000/api/file/getImage?fileId=54c2083f99c37bea5f000001">';
// var reg = new RegExp('<img *src="' + Api.leanoteUrl + '/api/file/getImage', 'g');
// content = content.replace(reg, '<img src="' + Server.localUrl + '/api/file/getImage');
// console.log(content);