Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试在我的 jQuery 前端和我的自定义 Joomla 组件之间进行 AJAX 通信。
我的 JSON 响应已准备就绪,但问题是组件打印的是 HTML,而 JSON 代码显示在其中。我不知道我做错了什么。
提前感谢任何线索
确保在前端使用 GET 请求时,已将 param: format=raw 附加到 URL 请求或 $.ajax({ data : 'format=raw', dataType: 'json' }) 或发布表单时您已附上:
<input type="hidden" name="format" value="raw">