为什么javascript只适用于ie [英] why javascript only works in ie
问题描述
这是我的javascript代码,任何想法为什么它只适用于Internet Explorer而不是任何其他浏览器。?
请帮助。
< script type =text / javascript>
function check(){
$('#main')。 load('LabSF2-2home.html #target');
}
function check1(){
$('#main') .load('LabSF2-2calendar.html#target1');
}
function check2(){
$('#main' ).load('LabSF2-2members.html#target2');
}
< / script>
this is my javascript code any idea why it only works on internet explorer and not any other browser.?
help please.
<script type="text/javascript">
function check(){
$('#main').load('LabSF2-2home.html #target');
}
function check1(){
$('#main').load('LabSF2-2calendar.html #target1');
}
function check2(){
$('#main').load('LabSF2-2members.html #target2');
}
</script>
推荐答案
('#main')。load('LabSF2-2home.html #target');
}
function check1(){
('#main').load('LabSF2-2home.html #target');
}
function check1(){
('#main')。load('LabSF2-2calendar.html#target1');
}
function check2 (){
('#main').load('LabSF2-2calendar.html #target1');
}
function check2(){
('#main')。load('LabSF2-2members.html#target2');
}
< / script>
('#main').load('LabSF2-2members.html #target2');
}
</script>
这篇关于为什么javascript只适用于ie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!