AngularJS angular.js:12520 SyntaxError:意外的令牌ILLEGAL附属窗口
AngularJS angular.js:12520 SyntaxError: Unexpected token ILLEGAL affiliate window
当将以下代码包含到我的单页AngularJS应用程序中时,我收到以下错误:
SyntaxError: Unexpected token ILLEGAL
代码被放置在我的一个视图文件中,并由AngularJS控制器填充。
当我删除JavaScript部分并插入img标记时,它的工作效果与预期完全一样。你知道为什么会发生这个错误以及如何修复它吗?
<!-- Javascript Tracking - Mandatory -->
<script type="text/javascript">
//<![CDATA[
/*** Do not change ***/
var AWIN = {};
AWIN.Tracking = {};
AWIN.Tracking.Sale = {};
/*** Set your transaction parameters ***/
AWIN.Tracking.Sale.amount = ‘{{order_subtotal}}’;
AWIN.Tracking.Sale.orderRef = ‘{(order_ref}}’;
AWIN.Tracking.Sale.parts = ‘DEFAULT:{{sale_amount}}’;
AWIN.Tracking.Sale.voucher = ‘{{voucher_code}}’;
AWIN.Tracking.Sale.currency = ‘GBP’;
AWIN.Tracking.Sale.test = ‘0’;
AWIN.Tracking.Sale.channel = ‘aw’;
//]]>
</script>
<!--Master Tag add just before the closing </body> tag-->
<script src="https://www.dwin1.com/{{merchant_ID}}.js" type="text/javascript" defer="defer"></script>
您的单引号是错误的,应该是'not'
相关文章:
- 使用Javascript获取Twitter访问令牌
- FB.login访问令牌facebook javascript SDK
- React JS:未捕获(在承诺中)语法错误:在位置 0 的 JSON 中意外<令牌
- Phonegap:获取访问令牌时出现LinkedIn登录错误
- "未捕获的SyntaxError:意外的令牌ILLEGAL“;当我通过AJAX发送html时
- 获取意外的令牌ILLEGAL JS错误
- jQuery after() uncatch SyntaxError: 意外令牌 ILLEGAL
- 使用节点javascript的意外令牌ILLEGAL
- AngularJS angular.js:12520 SyntaxError:意外的令牌ILLEGAL附属窗口
- Android网络视图”;未捕获的SyntaxError:意外的令牌ILLEGAL“;
- jQuery 1.10未捕获语法错误:意外的令牌ILLEGAL
- PHP调用脚本函数,返回值为Uncaught SyntaxError:意外的令牌ILLEGAL
- 意外的令牌 ILLEGAL - JavaScript 中的 ckeditor 值
- 获取server.js文件的意外令牌ILLEGAL错误
- 未捕获的SyntaxError:在main.js:4中出现意外的令牌ILLEGAL
- 未捕获的SyntaxError:php json_encode上出现意外的令牌ILLEGAL
- 意外令牌ILLEGAL:如何移除"e;并从JSON中断行
- 用JQuery添加嵌套窗体“;未捕获的SyntaxError:意外的令牌ILLEGAL“;
- Javascript语法错误:意外的令牌ILLEGAL
- 未捕获的语法错误:意外的令牌ILLEGAL ASP.NET mvc3