jQuery:加載txt文件并插入div我想加載* .txt文件并將內(nèi)容插入div。這是我的代碼:JS:$(document).ready(function() {
$("#lesen").click(function() {
$.ajax({
url : "helloworld.txt",
success : function (data) {
$(".text").html(data);
}
});
});});HTML:<div class="button">
<input type="button" id="lesen" value="Lesen!" /></div><div class="text">
Lorem Ipsum <br /></div>文本:im done如果我點擊按鈕firebug報告后出現(xiàn)以下錯誤:Syntax-Errorim done我不知道該怎么辦 :-(
jQuery:加載txt文件并插入div
人到中年有點甜
2019-08-19 15:28:28