gpt4 book ai didi

jquery - 使用 this.securejson = true;

转载 作者:行者123 更新时间:2023-12-01 02:32:55 24 4
gpt4 key购买 nike

如果我输入:

this.securejson = true;

进入我的Application.cfc,然后我的$.ajax函数调用不会回调.done函数。

如果我关闭 securejson,它就会起作用。

是否有已知的方法可以在 ajax 中使用 securejson?

最佳答案

This.SecureJson 仅适用于内置 cfajax 功能 - 您需要禁用它才能与任何其他库一起使用。

有关详细信息,请参阅 Pete Freitag's "Prefix Serialized JSON in ColdFusion"

有关解决方法,请参阅 Chris.m0nk3y's "Disabling secureJson prefix at runtime" - 他建议使用 getPageContext().getFusionContext().setSecureJSON(boolean) 根据需要打开/关闭它。

关于jquery - 使用 this.securejson = true;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11570357/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com