超级简单 jQuery 加载
supersimple jQuery load
这个简单的代码就是不加载任何东西,问题出在哪里?
<head>
<script src="js/jquery.js"></script>
<script src="js/load.js"></script>
</head>
<body>
<div class="container-fluid bgres">
<div class="container main" id="gora">
</div>
</div>
</body>
load.js
$(document).ready(function() {
$("#gora").load("gora.txt");
});
gora.txt 只是 html 从同一个地方剪下来的
我正在尝试假装 php 包含函数
$.ajax( "sample.txt" )
.done(function(data) {
$("#gora").html(data);
});
- 运行 HTTP 中的 html 文件(即)localhost 协议在 FTP 中不 运行
这个简单的代码就是不加载任何东西,问题出在哪里?
<head>
<script src="js/jquery.js"></script>
<script src="js/load.js"></script>
</head>
<body>
<div class="container-fluid bgres">
<div class="container main" id="gora">
</div>
</div>
</body>
load.js
$(document).ready(function() {
$("#gora").load("gora.txt");
});
gora.txt 只是 html 从同一个地方剪下来的
我正在尝试假装 php 包含函数
$.ajax( "sample.txt" )
.done(function(data) {
$("#gora").html(data);
});
- 运行 HTTP 中的 html 文件(即)localhost 协议在 FTP 中不 运行