Cannot read property 'substring' of undefined

这个是在使用 jquery的ztree插件过程中遇到的错误

原因是数据的格式和规定的格式不一致,需要把数据按照模板给的样子来

原文地址:https://www.cnblogs.com/zhuguangzhe/p/10188851.html