初始化以下对象时,会抛出错误。
var postData ={
file_path : "https://s3-us-west-2.amazonaws.com/ps/eams/6-48K.mxf",
template_type : "1",
template_name : "Basic Tests",
job_type : "0",
user_note : "my job",
access-key-ID : "AKAEBQ",
access-key-SECRET : "ZZHfO"
};
错误是
access-key-ID : "AKAEBQ",
^
SyntaxError: Unexpected token -
我怎么能处理这个?
答案 0 :(得分:1)
将键设置为字符串:
LinkButton