Uncaught TypeError: ((n.event.special[g.origType] || (intermediate value)).handle || g.handler).appl
来源:互联网 发布:ubuntu 分区 编辑:程序博客网 时间:2024/05/21 19:06
惯例:
我是温浩然:
chrome浏览器报错
Uncaught TypeError: ((n.event.special[g.origType] || (intermediate value)).handle || g.handler).apply is not a function
我这个错误,与这个错误并不一样
http://blog.csdn.net/a15937822658/article/details/12841643
页面代码如下:
<ul class="nav" id="side-menu" > <li><a href="/forum/pc/mycircle">我的关注</a></li> <li><a href="#"><span class="nav-label">其他版块</span><span class="fa arrow"></span> </a> <ul class="nav nav-second-level"> <c:forEach items="${boardType}" var="boardTypeList" varStatus="status"><li><a class="otherBoardList" data-boardType-id="${boardTypeList.id}" href="#">${boardTypeList.name}</a></li></c:forEach> </ul> </li> <li><a href="javascript:void(0);" id="myjoin">wodecanyu</a></li> <li><a href="/forum/pc/info/1">个人信息</a></li> <li><a href="#">● ● ●</a></li> <li><a href="/forum/pc/superm">下面是管理员权限</a></li> <li><a href="/forum/pc/doctor">人员管理</a></li> <li><a href="#"><span class="nav-label">帖子管理</span><span class="fa arrow"></span> </a> <ul class="nav nav-second-level"> <c:forEach items="${boardType}" var="boardTypeList" varStatus="status"><li><a class="allBoardList" data-boardType-id="${boardTypeList.id}" href="#">${boardTypeList.name}</a></li></c:forEach> </ul> </li> <li><a href="#">● ● ●</a></li> <li><a href="/forum/pc/superm">下面是超级管理员权限</a></li> <!-- <li><a href="/forum/machh/list">妇幼保健院管理</a></li> --> <li><a href="<spring:url value='/pboardType/show'/>">版块类别管理</a></li> <li><a href="#"><span class="nav-label">版块管理</span><span class="fa arrow"></span> </a> <ul class="nav nav-second-level"> <c:forEach items="${boardType}" var="boardTypeList" varStatus="status"><li><a class="boardList" data-boardType-id="${boardTypeList.id}" href="#">${boardTypeList.name}</a><!-- href="<spring:url value='/pboard/show/${boardTypeList.id}'/>" --></li></c:forEach> </ul> </li> </ul>
var INDEX = {init:function(el){INDEX.buidEevnt();},buidEevnt:function(){$('#side-menu').on('click','#myattention',INDEX.myAttention);$('#side-menu').on('click','#postManager',INDEX.postManager);$('#side-menu').on('click','.otherBoardList',INDEX.showOtherBoardList);$('#side-menu').on('click','.allBoardList',INDEX.showallBoardList);$('#side-menu').on('click','.boardList',INDEX.showallBoardListManager);}, //我的关注myAttention:function(){ $.postJson(cp+'/pcir/del',function(result){ $('#wrapper').html(result);}); }, //版块类别管理 postManager:function(){ $.postJson(cp+'/pcir/del',function(result){ $('#wrapper').html(result);}); }, //其他版块列表 otherBoardList:function(){ var el=$(this); alert(el.attr('data-boardtype-id')); $.get(cp+'/post/showbtn/'+el.attr('data-boardtype-id'),function(result){ alert(result); $('#wrapper').html(result);}); }, //帖子管理界面 allBoardList:function(){ var el=$(this); $.get(cp+'/post/showbtn/'+el.attr('data-boardType-id'),function(result){ alert(result); $('#wrapper').html(result);}); }, //板块管理界面 allBoardListManager:function(){ var el=$(this); $.get(cp+'/pboard/show/'+el.attr('data-boardType-id'),function(result){ alert(result); $('#wrapper').html(result);}); }}INDEX.init();
错误原因,上面方法名与下面的方法名不一致导致的错误。
$('#side-menu').on('click','.otherBoardList',INDEX.showOtherBoardList);
//其他版块列表 otherBoardList:function(){ var el=$(this); alert(el.attr('data-boardtype-id')); $.get(cp+'/post/showbtn/'+el.attr('data-boardtype-id'),function(result){ alert(result); $('#wrapper').html(result);}); },
0 0
- Uncaught TypeError: ((n.event.special[g.origType] || (intermediate value)).handle || g.handler).appl
- Uncaught TypeError: ((m.event.special[e.origType] || (intermediate value)).handle || e.handler).appl
- Extjs TypeError: types[(intermediate value)] is not a constructor
- Uncaught TypeError: Cannot read property 'value' of null
- Uncaught TypeError: Cannot read property 'value' of null
- Uncaught TypeError: Cannot read property 'value' of undefined
- Uncaught TypeError: Cannot read property 'value' of null
- About the special G/L account
- 802.11a/g/n
- G - N!Again
- Event Handle
- G#
- g
- G++
- g
- g
- g
- g
- 最长01串 SDUT 3308
- Device Low-Power States
- BSS段为什么需要初始化
- dubbo初识(1)
- java https访问
- Uncaught TypeError: ((n.event.special[g.origType] || (intermediate value)).handle || g.handler).appl
- 接触角测量
- java本地文件下载
- Dynamics CRM 2015/2016 Web API:重客户端的CRUD操作
- Android Fragment 生命周期分析
- Oracle定时任务处理
- 防止sql注入的五种方法
- maven如何合并两个war到一个war项目中
- [Android基础]动画xml文件