原購物車只有刪除和查詢

2021-08-09 09:26:02 字數 3418 閱讀 1230

html

>

<

html

lang=

"en"

>

<

head

>

<

meta

charset=

"utf-8"

>

<

title

>title

title

>

<

script

src=

"angular-1.3.0.js"

>

script

>

<

script

src=

"jquery-1.11.0.js"

>

script

>

<

script

>

var

var

data=[,,

,]

$scope.data=data;

$scope.col="id";

$scope.desc=0;

//刪除資訊

$scope.del=(function (hh) }}

});/*刪除選中的*/

$scope.delall=function ()

}}else

}/*全選*/

$scope.checkall=function ()

else}}

});$(function () );

$("#aa").click(function () );

$("#a3").click(function () );

$("#a4").click(function () );

$("#a5").click(function () );

});script

>

head

>

<

body

ng-controller=

"myctrl"

>

<

div>

<

h3>商品庫存資訊管理

h3>

<

hr>

<

div

style=

"background-color: #e8fbff;height:25px"

>

div>

<

input

type=

"text"

value=

"" placeholder=

"請輸入關鍵字...."

ng-model=

"search"

>

<

button

type=

"button"

style=

"margin-left: 1270

px;color:#c3c3c3;background-color:red

" ng-click=

"delall

()">批量刪除

button

>

div>

<

div>

<

table

border=

"1"

bordercolor=

"#c3c3c3"

width=

"500"

cellpadding=

"0"

cellspacing=

"0"

style=

"width:1350

px;text-align: center

">

<

tr>

<

td><

input

type=

"checkbox"

ng-click=

"checkall

()"

ng-model=

"chec"

>

td>

<

td id=

"a"

ng-click=

"desc

=!desc

;col

='id'"

>商品編號

td>

<

td id=

"aa"

ng-click=

"desc

=!desc

;col

='name'"

>商品名稱

td>

<

td id=

"a3"

ng-click=

"desc

=!desc

;col

='price'"

>商品**

td>

<

td id=

"a4"

ng-click=

"desc

=!desc

;col

='only'"

>商品庫存

td>

<

td id=

"a5"

ng-click=

"desc

=!desc

;col

='id'"

>商品操作

td>

tr >

<

tr ng-repeat=

"item

in data

|filter

:|orderby

:col

:desc

">

<

td><

input

type=

"checkbox"

ng-model=

"item.done"

>

td>

<

td>}

td>

<

td>}

td>

<

td>}

td>

<

td>}

td>

<

td>

<

button

style=

"color: #e8fbff;background-color: yellow

" ng-click=

"del

(item

.name

)">刪除

button

>

td>

tr>

table

>

div>

body

>

html

>

仿購物車滑動刪除

美國50個州確認 結果 拜登大勝 div div class del 刪除 div li li div class text 中國一箭雙星再次發射成功 div div class del 刪除 div li li div class text 丁真小馬珍珠發長文回應質疑 div div class ...

單點登入和購物車

單點登入實現過程 使用者傳送訪問到web應用,檢查cookies中是否不存在token,如果沒有token,重定向到認證中心,提示使用者註冊登入,使用者登入成功後,在本地cookie生成乙個token,帶著token跳轉到web應用,伺服器檢查token通過後則可以正常訪問。購物車 購物車跟使用者的...

京東購物車和天貓購物車的設計思維思考

我們先來對比下這兩個功能。場景 拋開電商,我們從日常生活考慮,立即購買的場景經常是使用者有目的性的去購買一件商品,使用者追求的是便捷 流暢的購買流程 查詢商品 選擇商品 下單 支付完成。回到電商,立即購買功能將選擇商品和下單無縫連線起來,使用者不需要跳出當前頁面,只需要按照步驟操作即可,給使用者提供...