layui报错Uncaught TypeError: tree is not a function
tree({
elem: “#classtree”
,
data: data
,
click: function (node) {
var $select = ((((this)[0].elem).parents(“.layui-form-select”);
$select.removeClass(“layui-form-selected”).find(“.layui-select-title span”).html(node.name).end().find(“input:hidden[name=‘selectID’]”).val(node.id);
}
});

这是layui的1版本写法,2版本应该这样写

tree.render({
elem: “#classtree”
,
data: data

        ,click: function (node) {var $select = $($(this)[0].elem).parents(".layui-form-select");$select.removeClass("layui-form-selected").find(".layui-select-title span").html(node.name).end().find("input:hidden[name='selectID']").val(node.id);}});

layui报错Uncaught TypeError: tree is not a function相关推荐

  1. 【解决】控制台报错Uncaught TypeError: Object(...) is not a function at eval (vue-router.esm-bundler.js

    打开http://localhost:8080/,控制台报错 Uncaught TypeError: Object(...) is not a functionat eval (vue-router. ...

  2. JS报错 Uncaught TypeError: undefined is not a function,解决

    Chrome调试报错:Uncaught TypeError: undefined is not a function,所有的数据都显示不出来 原因正如错误提示:调用了一个没有定义的方法,实际是一个空值 ...

  3. Javascript 报错 Uncaught TypeError: x is not a function 常见错误总结

    这是我近期犯的比较傻的一个错误,一定要mark一下. 以下代码段是借用父类构造函数来实现继承的一种方法, 不过在ES6已经可以使用类了,这个作为了解对阅读以前的代码还是有好处的. 代码非常简单, 1 ...

  4. 小程序组件报错Uncaught TypeError: Cannot read property 'name' of undefined

    小程序组件报错Uncaught TypeError: Cannot read property 'name' of undefined Component({/*** 组件的属性列表*/propert ...

  5. js代码中for循环里绑定onclick事件报错Uncaught TypeError Cannot set properties of undefined (setting ‘className‘)

    jsfor循环里绑定onclick事件报错Uncaught TypeError Cannot set properties of undefined (setting 'className') 我想要 ...

  6. JsonMap对象的获取与前台浏览器报错Uncaught TypeError: Cannot read property ‘map‘ of undefined

    JsonMap对象的获取与前台浏览器报错Uncaught TypeError: Cannot read property 'map' of undefined 经过不断排查以后发现是自己的后台传的值出 ...

  7. 立即执行函数报错Uncaught TypeError: (intermediate value) is not a function.

    立即执行函数报错Uncaught TypeError: (intermediate value) is not a function. 文章目录 立即执行函数报错Uncaught TypeError: ...

  8. JS报错-Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on...

    报错信息:Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on stric ...

  9. vue-cli 外部引入vue-router报错 Uncaught TypeError: Cannot redefine property: $router

    在优化基于vue-cli开发的vue项目中,把vue-router改成外部引入的时候, /build/webpack.base.conf.js配置参数: externals: {'vue': 'Vue ...

最新文章

  1. numpy随机生成数组
  2. 网站建设你够专业吗?——不需说,从色彩搭配就能看出来
  3. (转)explorer.exe应用程序错误:0x000000该内存不能为read的解决方法
  4. git-flow 流程 备忘清单
  5. servlet中web.xml配置详解
  6. python情感分析算法_Python 情感分析
  7. 分布式服务框架 HSF
  8. C++定义复数类(Complex)
  9. FFmpeg超低延迟视频推流笔记
  10. 支付宝账号转账/扫码即可到转账页
  11. 一个脚本打比赛之SMP WEIBO 2016
  12. bh1750c语言程序,BH1750FVI数字光线强度传感器 51单片机源程序
  13. Frustum culling
  14. ubuntu18使用preseed文件定制ISO镜像实现自动化安装
  15. 站长便民小工具引流网站源码_站长引流工具箱
  16. Vultr删除信用卡
  17. PCB阻焊层介绍与设计经验总结
  18. SAP中导出期末或指定日期库存
  19. DataX篇—离线同步作业分析及JSON构建
  20. 2023年福建农林大学程序设计校赛个人题解(无D解析)

热门文章

  1. win下搭建小程序服务器,win下搭建小程序服务器
  2. win更新管理工具有用吗_7个非常有用的在线业务管理工具
  3. jenkins 构建提示 can‘t open file xxxx [Errno 2] No such file or directory
  4. JavaScript点击按钮开关灯案例
  5. 【Unity】M_studio-随机RoughLike项目优化:动态代码生成对象
  6. 互联网公司的前台让我学 Flutter :)
  7. IE已经阻止此站点以不安全的方式使用ActiveX控件的解决
  8. redis主从架构(上)
  9. nyoj325 zb的生日(DFS)
  10. 集成简易图片在线编辑,实现简易图片滤镜裁剪添加对话框