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.
我创建了一个表格,通过拖放来排列一些名称。在这个表单中,用户可以通过添加更多按钮来添加动态表单元素,就像我们在 cck 中所做的那样。我的代码正在本地主机上运行,我可以添加动态表单元素,并且提交得很好。但是在实时服务器上,当我按下添加更多按钮时,它返回“发生 HTTP 错误 404”。我直接在浏览器地址栏上执行了这个路径然后它工作并给我 json 结果。当我尝试使用 jquery ajax 执行它时,它返回(200 OK 1.4s)。我很困惑发生了什么事啊啊。如果有人可以帮助我。提前致谢。
嗯,不完全了解您的情况,但尝试使用
打印 drupal_to_js($result) ;出口() ;
当你打印你的 json 数据时