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.
我的 _table 视图中有这个 ajax 按钮。
这个 _table 视图是通过我的主视图中的 AJAX 表单提交部分呈现的。
问题是当我单击提交(_table 视图中的按钮)时,提交的数据是在我的主视图中被序列化的数据,或者换句话说,我的主视图中的 ajax 按钮执行操作而不是另一个。
也许你没有使用 renderPartial 的“processOutput”参数,所以你的内部 JS 不工作。并且主视图有这样的ajax按钮,所以“_table”ajax按钮已经用主视图JS处理了...... 所以试试:
$this->renderPartial("_table", array(), false, true);