为什么javascript只适用于ie [英] why javascript only works in ie

查看:96
本文介绍了为什么javascript只适用于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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆