Phi*_*enn 2 ajax coldfusion jquery coldfusion-9
如果我把:
this.securejson = true;
Run Code Online (Sandbox Code Playgroud)
进入我的Application.cfc,然后我的$ .ajax函数调用不回调.done函数.
如果我关闭securejson,它会工作.
是否有一种已知的方法可以在ajax中使用securejson?
This.SecureJson 仅适用于内置的cfajax功能 - 您需要禁用它以与任何其他库一起使用.
有关更多信息,请参阅Pete Freitag的"ColdFusion中的前缀序列化JSON"
有关解决方法,请参阅Chris.m0nk3y的"在运行时禁用secureJson前缀" - 他建议使用getPageContext().getFusionContext().setSecureJSON(boolean)它根据需要打开/关闭它.
| 归档时间: |
|
| 查看次数: |
137 次 |
| 最近记录: |