3 Star 6 Fork 2

loveruby/electron.js+sqlite+ckeditor eq 离线笔记工具 notebook

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
loveruby 提交于 2021-05-14 18:18 +08:00 . 提交第一份可用代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body style="background: white;">
<div>
<input type="file" name="" id="file">
</div>
<div>
<input type="text" value="D:\hqk\projects\study-electron\nodepad\a.db" id="input1">
<button id="btn1">btn1</button>
<button id="get_note">get_note</button>
<button id="set_note">set_note</button>
</div>
<script>
onload=function(){
file.onchange=function(){
input1.value=file.files[0].path
}
btn1.addEventListener("click",function(){
//请求读取note
var filepath = input1.value
Caller.select_db(filepath,function(status,data){
console.log(status,data)
},4000)
})
get_note.addEventListener("click",function(){
Caller.get_note("test",function(status,data){
console.log(status,data)
},4000)
})
set_note.addEventListener("click",function(){
Caller.set_note_text("test","你好",function(err){
console.log(err)
},4000)
})
}
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/loveruby/electron-sqlite-ckeditor.git
git@gitee.com:loveruby/electron-sqlite-ckeditor.git
loveruby
electron-sqlite-ckeditor
electron.js+sqlite+ckeditor eq 离线笔记工具 notebook
master

搜索帮助