摘要: 4种方法,详情见:http://blog.csdn.net/lutinghuan/article/details/46820023 第一种: 1.新增类,其中有属性为该对象的集合 2.表单字段name属性值为数组形式: 3.后台接收: 第二种: 1.ajax请求,POST请求、'Content-Ty 阅读全文
posted @ 2016-11-28 11:09 不知为何就叫呵呵 阅读(8739) 评论(0) 推荐(0) 编辑
摘要: foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。item表示集合中每一个元素进行迭代时的别名,index指 定一个名字,用于表示在迭代过程中,每次迭代到 阅读全文
posted @ 2016-11-28 10:24 不知为何就叫呵呵 阅读(251) 评论(0) 推荐(0) 编辑
摘要: UPDATE setting SET content = CASE id WHEN #{setting.id} THEN #{setting.content} END WHERE ... 阅读全文
posted @ 2016-11-28 10:23 不知为何就叫呵呵 阅读(423) 评论(0) 推荐(0) 编辑