这是我第一次来。我在Jquery中遇到的一个问题是,当在Moblie Chrome中测试我的网站时,控制台会通知未定义$,我不知道发生了什么,因为在另一个浏览器中,moblie Via Browser可以正常工作。 我的HTML代码:
<html>
<head>
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
<meta charset="utf-8">
<title>Title</title>
<!--Font Awesome-->
<link href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" rel="stylesheet"-->
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.css" media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
Body
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.js"></script>
<script type="text/javascript" src="js/scripts.js" ></script>
</body>
</html>
scripts.js
var file_text = [];
var loadText;
var nome_arquivo = "";
var file_traduzido = [];
var file_so_texto = [];
var array_position = 0;
var file_positions = [];
var file_so_texto_traduzido = [];
var texto_final = "";
$(document).ready(function(){//error line
continue...