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

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

蛊毒传说
浏览 1306回答 1
1回答

慕田峪4524236

当然可以,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.
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript