dojo 函数报错 object expected
来源:互联网 发布:帝国cms与织梦cms 编辑:程序博客网 时间:2024/04/30 01:22
项目中用到dojo的一段代码,老是报错,因为刚开始对dojo也不是很熟,怎么也看不出错在哪,最后比较原先的另一个文件。
聊以本文Mark此错。
下面是有错的代码:
dojo.provide("atg.store.onlinechat");
atg.store.onlinechat={
openwin : function () {
window.open('/store/onlinechat/enter.jsp','','height=400, width=500, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
},
get_cookie: function (Name) {
var search = Name + "=";
var returnvalue = '';
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset,end));
}
}
return returnvalue;
},
loadpopup: function () {
if (get_cookie('popped')==''){ // 提示出错的位置
openwin();
document.cookie="popped=yes";
}
}
};
最后把‘get_cookie()’ 和 'openwin()' 加上 this,一切就OK啦。
- dojo 函数报错 object expected
- jquery报错: "object expected"
- [已解决]Object c,报错Expected method body
- 报错expected statement
- dojo报错总结
- object-c c case语句中的报错 Unexpected interface name 'NSArray': expected expression
- linux下scala脚本运行报错error: expected class or object definition 解决方案
- spark 报错ypeError: expected string or Unicode object, NoneType found
- Object expected
- IE下使用uploadify上传报:Uploadify-Script5007 Object expected
- expected identifier 报错怎么办?
- Expected identifier or'('报错
- dojo表格分页报错
- React native 安卓上传图片报错 TypeError:expected dynamic type 'string' but had type 'object'
- 脚本报错: binary operator expected
- AFJSONRequestOperation报错Expected content type
- Django报错expected string or buffer
- jsp 报错 equal symbol expected
- .Net WinForm 控件键盘消息处理剖析
- 在Windows 7下配置VS2008 Qt 插件,编译错误处理【转】
- 敏捷开发的26条至理名言
- [WPF] 星星按鈕
- 去掉xml中的命名空间
- dojo 函数报错 object expected
- ASCLL码
- 43个PSD转XHTML, CSS创建布局及导航辅导教程,解析事件背后的每一个步骤
- Delphi 动态与静态调用DLL
- 你必须知道的.NET]第二十回:学习方法论
- hdu 1166 敌兵布阵 (树状数组)
- Visual Graph图形平台的使用
- JAAS总结
- Zen Cart API 教程