Introduce the third party js into vue-cli 's index.html to report an error.

The

js file is placed in the static directory

introduce js newspaper Uncaught SyntaxError: Unexpected token into index.html globally

<body>
    <div id="app"></div>
    <!-- built files will be auto injected -->

    <script type="text/javascript"  src="./static/js/jquery.min.js"></script>  
    <script type="text/javascript"  src="./static/js/bootstrap.min.js"></script>  
    <script type="text/javascript"  src="./static/js/plugins/metisMenu/jquery.metisMenu.js"></script>  
    <script type="text/javascript"  src="./static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript"  src="./static/js/plugins/slimscroll/plugins/layer/layer.min.js"></script>
    <script type="text/javascript"  src="./static/js/plugins/slimscroll/hplus.min.js"></script>  
    <script type="text/javascript"  src="./static/js/plugins/slimscroll/contabs.min.js"></script>  
    <script type="text/javascript"  src="./static/js/plugins/slimscroll/plugins/pace/pace.min.js"></script>  
  </body>
 
   :Uncaught SyntaxError: Unexpected token < 
  <script type="text/javascript"  src="./static/js/jquery.min.js"></script>  
  <script type="text/javascript"  src="./static/js/bootstrap.min.js"></script>  
  <script type="text/javascript"  src="./static/js/plugins/metisMenu/jquery.metisMenu.js"></script>  
Mar.13,2022

check whether these static resource files have been moved correctly, and whether the UMD mode is supported? If all of the above is all right, how do you use it in the specific document? You'd better post it in the code and take a look at


I had the same problem before

. My problem is that I don't have that package in the static file.

just put it in after download.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea99a3-1f6d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea99a3-1f6d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?