我正在尝试使用jQuery选择器来选择一个id包含一些特殊字符{
和}
的表但是我在控制台中出错并且脚本没有被执行,不知道为什么:
错误文字
Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'none'". Either the 'unsafe-inline' keyword, a hash ('sha256-33YGiROm4Pzv0xXIPo82M0Dt2zrdnP4IgbJq1WeAtf8='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.
(anonymous) @ jquery-1.4.2.min.js:33
(anonymous) @ jquery-1.4.2.min.js:37
(anonymous) @ jquery-1.4.2.min.js:154
这是我的HTML表格
<table border="0" cellspacing="0" dir="none" cellpadding="1" id="{7B414D25-2C68-4ACF-A923-85EAE66F82D0}-{AFEC83B3-EBCC-4EC5-8C9D-1AEF0B30902F}" class="ms-listviewtable" view="AFEC83B3-EBCC-4EC5-8C9D-1AEF0B30902F">
我的jQuery
jQuery('#{7B414D25-2C68-4ACF-A923-85EAE66F82D0}-{AFEC83B3-EBCC-4EC5-8C9D-1AEF0B30902F}').append('<div>I am here!!!</div>');
有关我做错的任何建议吗?