TypeError (null reference exception) when using dom-construc
TypeError (null reference exception) when using dom-construct.place
类型错误: 无法读取 null 的属性"所有者文档" {堆栈:(...),消息:"无法读取 null 的属性'所有者文档'"}
升级道场后在下一行中遇到上述错误。有谁知道我该如何修复它,或者我应该将其报告为错误?
require([..., "dojo/dom-construct"], function(..., domConstruct) {
//some code
domConstruct.place(legPic, curLayer.id + '_chkBox_' + curLegLyr.layerId, "after");
});
curLayer.id + '_chkBox_' + curLegLyr.layerId
可能引用了在domConstruct.place
调用时文档中实际上不存在的 ID。
(该错误对应于 Dojo 源中的此行。
相关文章:
- 如何通过引用var Using DataTables来进行分页或排序
- jQuery.when()在循环中被忽略
- Object.prototype using 'this'
- using LocalStorage ionic 2
- jQuery Replacing, Using arrays
- Using jQuery with classes from ES6
- Dropdownlist using javascript
- 为什么$.when().pipe().then()有效,而$.when
- 为什么有些jQuery程序员使用像$.get、$.getJSON和$.when这样的jQuery函数来代替$.ajax
- Tic-Tac-Toe using React JS
- 在jqueryui中更改关键字using
- 通过$.when传播进度通知
- Using php mktime()
- Twitter api using Javascript
- Bootstrap-Datepicker not selecting date when using "set
- fetch data from db using javascript & php
- Using closures in node js
- TypeError (null reference exception) when using dom-construc
- Using jQuery .when .then
- Using deferred and when