运行此代码时,我一直收到非法语法意外字符错误。
$.ajax({
type: “POST”,
url: “https://mandrillapp.com/api/1.0/messages/send.json”,
data: {
‘key’: ‘J-oAcaL9ZHmbYV_9JA4zVg’,
‘message’: {
‘from_email’: ‘antony@yieldify.com’,
‘to’: [
{
‘email’: ‘moses@yieldify.com’,
‘name’: ‘Moses Hoyt’,
‘type’: ‘to’
}
],
‘autotext’: ‘true’,
‘subject’: ‘NUTRACELL TEST VIA MANDRILL’,
‘html’:‘HELLO WORLD’
}
} });
任何帮助都会非常感谢。