1.Thinkphp的Action输出的JSON在IE中提示下载
在ThinkphplibcoreAction.class.php中 将两处 “header(‘Content-Type:application/json; charset=utf-8′);” 修改为 “header(‘Content-Type:text/html; charset=utf-8′);”
2.Prototype无法取得form中的提交控件
具体表现为 Form.serialize方法返回为空,无法send
// 发送表单Ajax操作,暂时不支持附件上传
| 代码如下 | 复制代码 |
| sendForm: function(formId, url, response, target, tips, effect){vars = Form.serialize(formId); this.send(url, vars, response, target, tips, effect);} //www.111com.net |
|
其原因时form和内部input不能嵌套在table表格中。
在Thinkphp的rbac中是有不少错误的,有个就是上述的原因。在PublicTpluseredit.html中form就嵌套在table中了。
还有个问题是,重置密码的input没有指定reserPWD的id。
3.sendForm is not defined
| 代码如下 | 复制代码 |
|
class="small submit"> //www.111cn.Net Uncaught ReferenceError: sendForm is not defined |
|
其错误是因为sendForm方法的调用需要引入 ThinkAjax,变成ThinkAjax.sendForm
4.rbac分页无法跳转,?&=2 没有键
需要在config.php中添加 ‘VAR_PAGE’=>’p’
DeepSeek多模态怎么样及保姆级配置教程(codex、claude)实用指南
WSL2+Docker+Ollama本地部署大模型思路和实践指南(Qwen1.8b)实用指南
DeepSeek Harness热门插件盘点:10个实用插件,覆盖多Agent、上下文和多模态实用指南
grep文本搜索与正则表达式完整代码示例实用指南
AI漫剧伪装直男1‑24集无雾版夸克网盘资源免费分享
AI漫剧玉僧入尘1-68集无雾无删版夸克网盘资源免费分享