【发布时间】:2015-01-22 08:25:02
【问题描述】:
我有一个咖啡脚本函数
postData: (pattern) ->
myData =
a: "a string"
pattern: 0
f: false
它被评估为
{
"a": "a string",
"pattern": 0,
"f": false
}
这不是我想要的。我希望pattern 成为我传入的字符串
感谢您的帮助。
【问题讨论】:
标签: json coffeescript