摘要: 1、在workbench中表格显示为readonly ,更新时提示Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colu 阅读全文
posted @ 2016-03-16 17:29 麦穗丢丢 阅读(367) 评论(0) 推荐(0) 编辑
摘要: A父页面 ,B为子页面 1、父页面调用子页面 A中调用B中方法:self.frames[iframeName].BFunction(); 注:iframeName:为父页面中iframe的name属性值 BFunction()为子页面中方法 2、子页面调用父页面 B中调用A中方法:self.pare 阅读全文
posted @ 2016-03-16 17:26 麦穗丢丢 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1、insert on duplicate key update 如果不存在记录则插入,否则更新(依靠主键或者唯一约束)2、ALTER TABLE `表名` ADDUNIQUE KEY `索引名` (`列名`, `列名`)添加两个列组合唯一约束 阅读全文
posted @ 2016-03-16 14:20 麦穗丢丢 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、事件onCheck中文档参数为row, $element正确的顺序为$element,row eg: $Table.on('check.bs.table', function ($element,row) { }); 2、onUncheck事件同上 3、onCheckAll事件文档中参数为row 阅读全文
posted @ 2016-03-16 10:40 麦穗丢丢 阅读(391) 评论(0) 推荐(0) 编辑