亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

不使用npm安裝simditor而直接引用相關的js文件,那么可以使用其功能嗎?

不使用npm安裝simditor而直接引用相關的js文件,那么可以使用其功能嗎?

蠱毒傳說 2018-08-31 14:16:18
不使用npm安裝simditor而直接引用相關的js文件,那么可以使用其功能嗎?
查看完整描述

1 回答

?
慕田峪4524236

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.


查看完整回答
反對 回復 2018-10-24
  • 1 回答
  • 0 關注
  • 1313 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號