4 回答
TA贡献1982条经验 获得超2个赞
<script type="text/javascript">
try //Internet Explorer
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
catch(e)
{
try //Firefox, Mozilla, Opera, etc.
{
xmlDoc=document.implementation.createDocument("","",null);
}
catch(e) {alert(e.message)}
}
try
{
xmlDoc.async=false;
xmlDoc.load("books.xml");
document.write("xmlDoc is loaded, ready for use");
}
catch(e) {alert(e.message)}
</script>
TA贡献1824条经验 获得超6个赞
php5-xml-5.3.3_2 The xml shared extension for php
php5-xmlreader-5.3.3_2 The xmlreader shared extension for php
php5-xmlwriter-5.3.3_2 The xmlwriter shared extension for php
TA贡献1772条经验 获得超8个赞
直接传函数名 比如funcB 在函数里面 直接执行funcB()
var b = function(){alert(1)};
var a = function(v1,v2){v2();}
a(1,b);
- 4 回答
- 0 关注
- 1098 浏览
添加回答
举报