jQuery load()
功能无法加载到Chrome或Firefox,但它可以在Atom的HTML预览中使用吗?
如何在Google Chrome中设置--allow-from-local-files
选项?
$(document).ready(function() {
$(".test2").click(function() {
$(".test1").load("data.html");
});
});

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="test2">click here</div>
<div class="test1">
This will disappear after clicking on ....
</div>
&#13;