是否有与jquery .load()等效的本机javascript?
问题描述:
与下面的jquery等效的原生javascript是什么?
What would be the native javascript equivalent to the jquery below?
$('#anyDiv').load("anyPage.htm");
答
您可以尝试这样.
document.getElementById("anyDiv").innerHTML='<object type="text/html" data="anyPage.html" ></object>';