0
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$.noConflict();
jQuery(document).ready(function ($) {
$("#btnclick").click(function () {
$("div").load("https://drive.google.com/file/d/0B1ysrWPjNhlcblQtUmx3YTBpUG8/view?usp=sharing", function (responseTxt, StatusTxt, xhr) {
if (statusTxt == "success") {
alert("Your content load successfully !!");
}
if (statusTxt == "error") {
alert("Error: " + xhr.status + ":" + xhr.statusText);
}
});
});
});
</script>
</head>
<body>
<div>
<p>Click the button to insert text after the image.</p>
</div>
<button id="btnclick">Click Here TO Change The Content</button>
</body>
</html>

我从我的谷歌驱动器获取一个 txt 文件。它是共享的谷歌链接。但它没有加载。文本文件是一个可共享的链接。如果给定的文本文件不起作用,请使用相同的文本文件或不同的文件。链接是:在此处输入链接描述

4

0 回答 0