`
cuizhilei
  • 浏览: 9299 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论
文章列表

js 禁用ctrl+滚轮

    博客分类:
  • js
其中经我测试,IE/Opera属于同一类型,使用attachEvent即可添加滚轮事件。 复制代码 代码如下: /*IE注册事件*/ if(document.attachEvent){ document.attachEvent('onmousewheel',scrollFunc); } Firefox使用addEventListener添加滚轮事件 复制代码 代码如下: /*Firefox注册事件*/ if(document.addEventListener){ document.addEventListener('DOMMouseScroll',scrollFunc,fals ...

json

    博客分类:
  • js
json对象 var json = {aa:true,bb:true}; var json1 = {aa:'b',bb:{cc:true,dd:true}}; 1:js操作json对象    for(var item in json){        alert(item);           //结果是 aa,bb, 类型是 string        alert(typeof(item));        alert(eval("json."+item));   //结果是true,true类型是boolean        eval(("json." ...
JavaScript对象与JSON字符串的相互转换 所属标签: WEB前端 JavaScript     JSON(JavaScript Object Notation) 是JavaScript编程语言的一个子集。正因JSON是JavaScript的一个子集,所以它可清晰的运用于此语言中。 eval函数 JSON文本转换为对象   ...

aaaaa

    博客分类:
  • aaaa
  //获取呼叫中心信息         HWCallCenter[] hwccs = null;//new HWCallCenter[0];         String wasPath = SystemConfigUtil.getInstance().getWasDelpoyPath();         try         {             hwccs = ((HWJtapiPeer) this.peer).getHWCallCenter(JtapiAppMode.JtapiSameServerMode ,wasPath, null);                   ...
if(isIE){ script.onreadystatechange = function(){ if(this.readyState == 'loaded' || this.readyState == 'complete'){ callback(); } } }else{ script.onload = function(){ callback(); } } <script type="text/javascript">   //< ![CDATA[   if(document.attachEvent){     docume ...
<html> <head> <meta http-equiv="content-type" content="text/html; charset=gb2312"> <meta name="generator" content="microsoft frontpage 4.0"> <meta name="progid" content="frontpage.editor.document"> <titl ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=gbk ...
Global site tag (gtag.js) - Google Analytics