1 回答

TA貢獻1875條經驗 獲得超5個贊
當然可以,npm 安裝最后也是引用對應的 js 文件,你到版本下載頁下載最新的壓縮包,按著官方文檔的順序依次引入就行
<link rel="stylesheet" type="text/css" href="[style path]/simditor.css" />
<script type="text/javascript" src="[script path]/jquery.min.js"></script>
<script type="text/javascript" src="[script path]/module.js"></script>
<script type="text/javascript" src="[script path]/hotkeys.js"></script>
<script type="text/javascript" src="[script path]/uploader.js"></script>
<script type="text/javascript" src="[script path]/simditor.js"></script>
順序不能亂,因為它們之間有依賴的先后關系,還有以下描述
Simditor is based on jQuery and module.js.
hotkeys.js is used to bind hotkeys.
uploader.js is related to uploading files. You don't need to import this file if you don't want the uploading feature.
添加回答
舉報