每当我尝试访问铬开发人员工具中的对象,我看到错误波纹管: VM4939:1未捕获TypeError:无法读取未定义 的属性“单元格”:1 :13在铬开发工具中的对象访问不起作用
我的代码是:
<head>
<script>
var new_2ELayout;
function doOnLoad() {
var new_1CLayout = new dhtmlXLayoutObject({
parent: document.body,
pattern: "1C"
});
var new_1CLayoutA = new_1CLayout.cells("a");
</script>
</head>
该代码在语法上不正确;你在某处丢失了一个'}'。 – Pointy
看起来你只是错过了你的功能的大括号。 –