扫码关注官方订阅号
不使用npm安装simditor而直接引用相关的js文件,那么可以使用其功能吗?
认证0级讲师
理论上可以。
当然可以,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.
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
理论上可以。
当然可以,npm 安装最后也是引用对应的 js 文件,你到版本下载页下载最新的压缩包,按着官方文档的顺序依次引入就行
顺序不能乱,因为它们之间有依赖的先后关系,还有以下描述
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.