大家帮忙看看这段代码错在哪里?

iWool 2006-01-22 01:05:35
代码:

SparkEventsCalendarDateBoxClass.prototype.$getSize = function ()
{
return({width: this.width, height: this.height});
};


出错提示:

"错误: 元件'元件 10', #initclip,"Line 39: parse error
return({
^


第39行是:“ return({width: this.width, height: this.height}); ”


如果我没理解错,"parse error"应该是拼写错误,但是我的确没看出那里有拼错


请大家指出
...全文
85 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
unixpeter 2006-02-09
  • 打赏
  • 举报
回复
return({width: this.width, height: this.height});
changed:
return(width: this.width, height: this.height);

2,275

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 Flash流媒体开发
社区管理员
  • Flash流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧