Javascript cropper.js-意外标识符
尝试使用Javascript cropper.js-意外标识符,javascript,cropper,Javascript,Cropper,尝试使用crapper.js: 下载并解压文件后,我在根级别创建了index.php: <!doctype html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <title>IMGED</title> <meta name='viewport' content='w
crapper.js
:
下载并解压文件后,我在根级别创建了
index.php
:
<!doctype html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<title>IMGED</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<link href="src/index.css" rel="stylesheet">
</head>
<body>
<div>
<img id="image" src="img.jpg" alt='img'>
</div>
<script src="src/index.js"></script>
</body>
</html>
index.js
import Cropper from './js/cropper';
export default Cropper;
有什么问题,请?在阅读中,也许可以尝试将
type=“module”
添加到您的
@tyleroper,尝试并获得此-http://localhost/imgedit/02/src/js/cropper net::ERR_在阅读时中止404(未找到)
,也许可以尝试将type=“module”
添加到您的
@tyleroper,尝试并获取此-http://localhost/imgedit/02/src/js/cropper net::ERR_中止404(未找到)
import Cropper from './js/cropper';
export default Cropper;