【发布时间】:2013-01-21 12:13:40
【问题描述】:
将以下记录字段添加到 GridPanel 存储会使网站向 Chrome 控制台抛出 JavaScript 错误 Uncaught SyntaxError: Unexpected identifier
<ext:RecordField Name="listname" AllowBlank="false" DefaultValue="Listname" />
<ext:RecordField Name="recipients" AllowBlank="false" DefaultValue="Listmembers" />
<ext:RecordField Name="usage" AllowBlank="true" />
<ext:RecordField Name="responsible" AllowBlank="false" DefaultValue="please add Responsible Person(s)/ Group(s)" />
Firebug 控制台出现以下错误:
SyntaxError: missing } after property list
[Break On This Error]
...,name:"responsible",defaultValue:please add Responsible Person(s)/ Group(s)}]}),...
---------------------------------------------|
admin.aspx (line 16, col 60)
看起来默认值没有正确引用为字符串,我该如何解决这个问题?
【问题讨论】:
标签: javascript grid store default-value ext.net