IE中的javascript:void(0)问题 [英] javascript:void(0) problem in IE

查看:88
本文介绍了IE中的javascript:void(0)问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用了jquery滑块,但是该代码在Firefox和chrome上都可以运行,但在ie上却不工作
HTML代码

I am using jquery slider in my project but that code works on both firefox and chrome but not working in ie

HTML code

<a href="javascript:void(0);" class="PreviousSlide"  id="PreviousButton1"></a>



jquery:



jquery:

$(".NextSlide").click(function(e) {
       if (e.detail == 1) {
         
         here jqery code     
       }
       else {
           return false;
       }

   });

推荐答案

(" ).click(function(e){ 如果(例如,detail == 1 ){ 这里jqery代码 } 其他 { 返回 ; } });
(".NextSlide").click(function(e) { if (e.detail == 1) { here jqery code } else { return false; } });


如果您使用的组件不是您编写的,那么您需要阅读该组件的文档以了解其浏览器兼容性问题.您甚至都不说组件的来源,所以我们真的不知道该如何提供帮助.
IF you use a component you did not write, then you need to read the docs for that component to find out what it''s browser compatibility issues are. You don''t even say where the component came from, so we really have no idea how to help.


只要删除if条件,我的代码在IE中就可以了,但我不知道.''它是如何工作的...如果有人知道,请告诉我....它是如何工作的?
just remove the if condition my codes are works in IE but i don''t how its work...If anyone know pls tell me ....how its work?


这篇关于IE中的javascript:void(0)问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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