mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
send changes for notebook
This commit is contained in:
12
test.js
12
test.js
@@ -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);
|
||||
|
Reference in New Issue
Block a user