- chrome和火狐报告: TypeError: locContainer is undefined
报告所在位置:
}, _setupContainer: function (view, w, h) {
var frame = view._frame;
if (cc.view._autoFullScreen && cc.sys.isMobile && frame == document.documentElement)
//cc.screen.autoFullScreen(frame);
var locCanvasElement = cc._canvas, locContainer = cc.container;
locContainer.style.width = locCanvasElement.style.width = w + "px";
locContainer.style.height = locCanvasElement.style.height = h + "px";
- 如果在chrome中按F12打开开发工具,再刷新,就无此错误报告,否则会一直报告此错误
求原因和解决方法