RecordField中的默认值在执行时引发JavaScript错误

RecordField中的默认值在执行时引发JavaScript错误,javascript,grid,store,default-value,ext.net,Javascript,Grid,Store,Default Value,Ext.net,将以下记录字段添加到GridPanel存储区会使站点向Chrome控制台抛出一个JavaScript错误Uncaught SyntaxError:Unexpected identifier <ext:RecordField Name="listname" AllowBlank="false" DefaultValue="Listname" /> <ext:RecordField Name="recipients" AllowBlank="false" DefaultValue=

将以下记录字段添加到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)" />

似乎默认值没有正确地引用为字符串,如何解决此问题?

似乎记录字段的默认值通常应该是javascript变量。
双引号
defaultValue=“'foo bar'”
解决了这个问题

似乎记录字段的默认值通常应该是一个javascript变量。
双引号
defaultValue=“'foo bar'”
解决了这个问题

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)