1、控制器 public function show($id) { $goods = Goods::select(goods.*)-where(goods.id, =, $id)-get(); $data = []; foreach($goods as $key=$v) { $data[$key][id] = $v-id; $data[$key][name] = $v-name; $data[$key][product_code] = $v-product_code
1、控制器
2、view
3、js 注意:jquery,jquery-form.js layer插件的引入 bootstrap相关的引入
|
2019-06-28
2019-10-03
2019-07-04
2019-06-22
2019-02-12