當前位置:九游会j9娱乐平台-九游ag登录中心网址 » 編程語言 » sqleditor

sqleditor-九游会j9娱乐平台

發布時間: 2024-07-05 12:20:39

ⅰ oracle鏁版嵁搴撴庝箞鎵撳紑sql紿楀彛錛堣緭鍏ユ煡澶勮鍙ワ級

1銆佸畨瑁呭苟鎵撳紑toad鍙瑙嗗寲宸ュ叿銆

ⅱ 如何採用element-plus,基於codemirror6實現sql在線編輯器

js在線sql編輯器,下載後導入ide工具中,在瀏覽器訪問sql-editor-master/index.html ,效果如下(含括弧高亮顯示、顯示折疊欄):
codemirror官網https://codemirror.net/, 官網js/css資源文件,也可自行去官網下載,但是官網比較慢,需引入的核心頁面代碼:

































核心js代碼:

//根據dom元素的id構造出一個編輯器
var editor=codemirror.fromtextarea(document.getelementbyid("code"),{
mode:"text/c-mysql", //實現java代碼高亮
linenumbers:true,
matchbrackets: true, //括弧高亮匹配
theme:"default",
keymap: "default",
extrakeys:{"tab":"autocomplete"},
hint: codemirror.hint.sql,
linewrapping: true, //是否換行
foldgutter: true, //是否折疊
gutters: ["codemirror-linenumbers", "codemirror-foldgutter"], //添加行號欄,折疊欄
hintoptions: {
tables: tablewords

}

});

輸入關鍵詞提示等信息的配置:allwords.json

動態設置表欄位等信息:

let tablewords = {"al": []};
let tablename = "tn_user";
tablewords[tablename].push("userid");
editor.setoption("hintoptions", {"tables": tablewords});
tablewords json格式如下:

"tablewords": {
"cp_sku": [
"skuid",
"cpbh",
"tcbh"
],
"user_info": [
"user_id",
"user_token",
"user_name",
"user_type",
"password"
]
}

ⅲ 鍦∣racle浣跨敤sql璇鍙ヤ腑濡備綍鎻掑叆鏃ユ湡鏍煎紡鐨勬暟鎹

1銆佽緭鍏ユ湇鍔″櫒鍦板潃銆佹暟鎹搴撶櫥褰曠敤鎴峰悕銆佺櫥褰曞瘑鐮侊紝瀹屾垚鏁版嵁搴撶櫥褰曟搷浣溿

熱點內容
resin下jsp不能正常編譯 發布:2024-07-17 16:34:44 瀏覽:229
sqlserver如何切換主備伺服器 發布:2024-07-17 16:23:02 瀏覽:299
mc18伺服器ip 發布:2024-07-17 16:23:02 瀏覽:379
仙境傳說手游腳本 發布:2024-07-17 16:09:24 瀏覽:691
matlab命令窗口和新建腳本 發布:2024-07-17 15:51:26 瀏覽:375
建ftp文件夾 發布:2024-07-17 15:51:26 瀏覽:955
魔獸撿物腳本 發布:2024-07-17 15:27:56 瀏覽:130
開發ip伺服器 發布:2024-07-17 15:24:42 瀏覽:388
安卓系統視頻製作哪個好用 發布:2024-07-17 15:10:47 瀏覽:210
androidapk結構 發布:2024-07-17 15:10:43 瀏覽:945
网站地图