摘要:
/查询单个 function query(id) { $.ajax({ url : "/small/productServlet", async : true, type : "POST", data : { "type" : "query", "id" : id ... 阅读全文
posted @ 2019-04-21 19:03
码农编程进阶笔记
阅读(1155)
评论(0)
推荐(0)
摘要:
/查询单个function query(id) { $.ajax({ url : "/small/productServlet", async : true, type : "POST", ... 阅读全文
posted @ 2019-04-21 19:03
码农编程进阶笔记
阅读(40)
评论(0)
推荐(0)
摘要:
input框赋值如下所示,是一个文本框的html代码,实际开发中,要涉及到将数据库中的数据取出然后放入input框中。 <input id="name1" name="teacherName" type="text" />1通过以下js代码可以实现对input文本框进行赋值,以下方法分别针对不同的情 阅读全文
posted @ 2019-04-21 17:24
码农编程进阶笔记
阅读(8899)
评论(0)
推荐(0)
摘要:
input框赋值如下所示,是一个文本框的html代码,实际开发中,要涉及到将数据库中的数据取出然后放入input框中。 1通过以下js代码可以实现对input文本框进行赋值,以下方法分别针对不同的情况,但是前两种是通用的。 $('#name1')... 阅读全文
posted @ 2019-04-21 17:24
码农编程进阶笔记
阅读(102)
评论(0)
推荐(0)
摘要:
模态框 modal data-toggle data-target 1. Data-*属性 模态框(modal) 触发事件(data-toggle) 触发对象data-target(ID 或类) 2. 关闭所有data事件$(document).off(“.data-api”); 关闭某个data事 阅读全文
posted @ 2019-04-21 16:02
码农编程进阶笔记
阅读(1372)
评论(0)
推荐(0)
摘要:
模态框 modal data-toggle data-target 1. Data-*属性 模态框(modal) 触发事件(data-toggle) 触发对象data-target(ID 或类) 2. 关闭所有data事件... 阅读全文
posted @ 2019-04-21 16:02
码农编程进阶笔记
阅读(140)
评论(0)
推荐(0)
摘要:
https://segmentfault.com/q/1010000007926567 在模型中声明一对多的关系,关联表本身。parent_id对应父记录的id。我在sof中查阅到很多这样的写法: public function belongsToParent(){ return $this->be 阅读全文
posted @ 2019-04-21 00:48
码农编程进阶笔记
阅读(833)
评论(0)
推荐(0)
摘要:
https://segmentfault.com/q/1010000007926567 在模型中声明一对多的关系,关联表本身。parent_id对应父记录的id。我在sof中查阅到很多这样的写法: public function bel... 阅读全文
posted @ 2019-04-21 00:48
码农编程进阶笔记
阅读(38)
评论(0)
推荐(0)
摘要:
php版 js版 阅读全文
posted @ 2019-04-21 00:27
码农编程进阶笔记
阅读(164)
评论(0)
推荐(0)
摘要:
php版 /** * 生成唯一订单号 */ public function build_order_no() { $no = date('Ymd').substr(implode(NULL, array_... 阅读全文
posted @ 2019-04-21 00:27
码农编程进阶笔记
阅读(41)
评论(0)
推荐(0)

浙公网安备 33010602011771号