![](/img/trans.png)
[英]form.getElementsByName is not a function, but document.getElementsByName is
[英]document.getElementsByName() is not a function in firefox
我的js代碼在Chrome和IE中工作正常,但是在Firefox中,控制台顯示:
TypeError:xmlDoc.getElementsByName不是一個函數
var nextSectionName = actSection.getElementsByTagName("clickArea")[actClickArea].getAttribute('linkTo');
actSection = xmlDoc.getElementsByName(nextSectionName)[0];
xmlDoc只是一個XML文件, actSection = xmlDoc.getElementsByTagName("section")[0];
作品也很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.