m_Orchestrate learning system---六、善用组件插件的好处是什么
m_Orchestrate learning system---六、善用組件插件的好處是什么
一、總結(jié)
一句話總結(jié):
?
1、面包屑導(dǎo)航是什么?
知道它是什么自然就知道它怎么用了
?
?
2、表格里面的欄目能能點(diǎn)擊的實(shí)質(zhì)是什么?
可點(diǎn)擊還是a標(biāo)簽,而不是內(nèi)部設(shè)置的樣式
1 <thead> 2 <tr> 3 <th class="table-check"><input type="checkbox" class="tpl-table-fz-check"></th> 4 <th class="table-id">ID</th> 5 <th class="table-title">標(biāo)題</th> 6 <th class="table-type">類別</th> 7 <th class="table-author am-hide-sm-only">作者</th> 8 <th class="table-date am-hide-sm-only">修改日期</th> 9 <th class="table-set">操作</th> 10 </tr> 11 </thead> 12 <tbody> 13 <tr> 14 <td><input type="checkbox"></td> 15 <td>1</td> 16 <td><a href="#">Business management</a></td> 17 <td>default</td> 18 <td class="am-hide-sm-only">測(cè)試1號(hào)</td> 19 <td class="am-hide-sm-only">2014年9月4日 7:28:47</td> 20 <td> 21 <div class="am-btn-toolbar"> 22 <div class="am-btn-group am-btn-group-xs"> 23 <button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 編輯</button> 24 <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 刪除</button> 25 </div> 26 </div> 27 </td> 28 </tr> 29 30 </tbody>1、可點(diǎn)擊還是a標(biāo)簽,而不是內(nèi)部設(shè)置的樣式
2、<th class="table-title">標(biāo)題</th> 像這里面的table-title樣式我在官方文檔里面找不到,但是我可以去引入的css里面找,就知道它講的啥了
?
css里面也沒有找到,但是它的樣式明顯在這里
?
?
3、amaze ui的常用組件有哪些?
amazeui對(duì)這些常用的組件都進(jìn)行了特別詳細(xì)的說明,使用只需要進(jìn)行最基本的拼裝,用到的時(shí)候再看
先注意小徽章,評(píng)論 列表,圖標(biāo),縮略圖,文章頁(yè)
?
?
4、小徽章如何使用?
以bootstrap為例
項(xiàng)目中有用到
項(xiàng)目中實(shí)例
?
?
5、如何post方式傳值并且獲取值?
從post中獲取的id為字符串類型
從數(shù)據(jù)庫(kù)中取來數(shù)據(jù)的時(shí)候數(shù)據(jù)的類型和在數(shù)據(jù)庫(kù)中一樣,id還是int類型的
post從頁(yè)面?zhèn)鬟f過來的表單數(shù)據(jù)中的數(shù)組中的元素類型應(yīng)該都是string類型無疑
所以從表單的數(shù)據(jù)庫(kù)的數(shù)據(jù)就是從string類型到達(dá)數(shù)據(jù)庫(kù)中的數(shù)據(jù)類型,這個(gè)其實(shí)insert完成的,因?yàn)閕nsert插入語(yǔ)句中例如id還是為'1'還是string類型
所以得出結(jié)論:
從頁(yè)面?zhèn)鬟f過來的數(shù)據(jù)都是string類型,從數(shù)據(jù)庫(kù)拿出來的數(shù)據(jù)是數(shù)據(jù)庫(kù)中的類型
?
傳遞參數(shù)
1 <td> 2 <div class="am-btn-toolbar"> 3 <div class="am-btn-group am-btn-group-xs"> 4 <a href="{:url('discipline/edit')}"><button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> Edit</button></a> 5 <a href="{:url('discipline/delete',array('id'=>$vo.id))}"><button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> Delete</button></a> 6 </div> 7 </div> 8 </td>?
獲取參數(shù)
1 //刪除學(xué)科分類 2 public function delete(){ 3 //1、獲取從頁(yè)面?zhèn)鬟f過來的id 4 $id=input('id'); 5 dump($id);die; 6 //2、刪除數(shù)據(jù)庫(kù)傳遞過來的id數(shù)據(jù) 7 return view(); 8 }?
結(jié)果
?
?
二、內(nèi)容在總結(jié)中
?
項(xiàng)目地址
fry404006308/m_Orchestrate: m_Orchestrate
https://github.com/fry404006308/m_Orchestrate
?
轉(zhuǎn)載于:https://www.cnblogs.com/Renyi-Fan/p/8930063.html
總結(jié)
以上是生活随笔為你收集整理的m_Orchestrate learning system---六、善用组件插件的好处是什么的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 让程序员薪资上升一个level的良心十条
- 下一篇: linux之ifconfig、ifup、