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 關注
- 1139 瀏覽
添加回答
舉報
