版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第AngularJs点击状态值改变背景色的实例//更改边框颜色的代码$("#shname").css({"border":"1pxsolidred"});
//排序有时候下标会错乱不建议使用建议使用讲师排序代码
!DOCTYPEhtml
html
head
metacharset="UTF-8"
title/title
scripttype="text/javascript"src="js/jquery-1.11.0.min.js"/script
scripttype="text/javascript"src="js/angular.min.js"/script
style
margin:0auto;
padding:0;
.div{
margin-top:50px;
width:800px;
height:1000px;
.tian{
width:80px;
height:24px;
background:#5CD6FF;
width:150px;
height:24px;
margin-left:130px;
border-radius:10px;
height:24px;
margin-left:20px;
border-radius:10px;
height:24px;
margin-left:30px;
width:14px;
height:14px;
position:absolute;
margin-left:-24px;
padding-top:6px;
width:14px;
height:14px;
position:absolute;
margin-left:-24px;
padding-top:6px;
#table{
margin-top:50px;
.fh1{
background:#FCFC30;
.true{
background:greenyellow;
border:0px;
border-radius:3px;
.false{
background:yellow;
border:0px;
border-radius:3px;
/style
/head
bodyng-app="myapp"ng-controller="mycr"
div
inputtype="button"value="新增订单"ng-click="add()"/
inputtype="button"value="批量删除"ng-click="px()"/
inputtype="text"placeholder="按商品名称查询"id="sp"ng-model="msname"/
imgsrc="img/q.png"id="t"ng-click="nameselect()"/
inputtype="text"placeholder="按手机号查询"id="sj"ng-model="mytel"/
imgsrc="img/q.png"id="t1"ng-click="sjselect()"/
selectid="st"ng-change="myfh()"ng-model="fh"ng-init="fh=cha[0]"
optionng-repeat="cincha"{{c}}/option
/select
tableborder="1px"cellspacing="1"cellpadding=""0width="800px"height="30px"id="table"
tralign="center"
tdinputtype="checkbox"ng-model="qx"ng-click="myqx()"//td
tdidnbsp;nbsp;inputtype="button"value="排序"ng-click="idp()"//td
td商品名/td
td用户名/td
td手机号/td
td价格nbsp;nbsp;inputtype="button"value="排序"ng-click="jiap()"//td
td城市/td
td下单时间nbsp;nbsp;inputtype="button"value="排序"ng-click="ship()"//td
td状态/td
/tr
tralign="center"ng-repeat="xinuser|filter:{sname:sn}|filter:{tel:sh}|filter:fahuo|orderBy:idpai"
tdinputtype="checkbox"ng-model="x.flog"ng-click="dx($index)"//td
td{{x.id}}/td
td{{x.sname}}/td
td{{}}/td
td{{x.tel}}/td
td{{x.price|currency:"¥:"}}/td
td{{x.cheng}}/td
td{{x.time|date:"MM-ddHH:mm:ss"}}/td
tdinputtype="button"value="{{x.zhuang|myFilter}}"ng-click="fahuo1($index)"//td
/tr
/table
fieldsetng-show="yc"
legend添加订单信息/legend
center
商品名inputtype="text"ng-model="shname"id="shname"/
spanid="s1"/spanbr/br/
用户名inputtype="text"ng-model="username"id="username"/
spanid="s2"/spanbr/br/
手机号inputtype="text"ng-model="mtel"id="mtel"/
spanid="s3"/spanbr/br/
价格为inputtype="text"ng-model="mprice"id="mprice"/
spanid="s4"/spanbr/br/
请选择城市selectng-model="chengshi"ng-init="chengshi=cs[0]"ng-change="xuancs()"
optionng-repeat="xxincs"{{xx}}/option
/select
spanid="s5"/spanbr/br/
inputtype="button"value="保存"ng-click="baocun()"/
/center
/fieldset
/div
/body
script
varapp=angular.module("myapp",[]);
app.controller("mycr",function($scope){
//select列表的值
$scope.cha=["按状态查询","已发货","未发货"];
$scope.cs=["请选择城市","北京","天津","河北","上海"];
$scope.user=[{
"flog":false,
"id":2001,
"sname":"IphoneX",
"name":"张三",
"tel":,
"price":"8699",
"cheng":"北京",
"time":"14560161945000",
"zhuang":false,
"flog":false,
"id":3006,
"sname":"Iphone6",
"name":"王红",
"tel":"12564236541",
"price":"5635",
"cheng":"郑州",
"time":"1456016212945000",
"zhuang":false,
"flog":false,
"id":5312,
"sname":"Iphone7",
"name":"赵小龙",
"tel":,
"price":"6180",
"chen
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 17980.18-2026农药田间药效试验准则第18部分:杀虫剂防治十字花科蔬菜黄条跳甲
- 2026西安西开精密铸造有限责任公司招聘2人考试备考题库及答案解析
- 2026锦泰财产保险股份有限公司四川分公司招聘罗江支公司经理等岗位5人笔试备考题库及答案解析
- 2026年重庆工程学院单招职业适应性测试题库附答案详细解析
- 2026上半年北京门头沟区事业单位招聘45人笔试备考题库及答案解析
- 2026中国移动万源分公司招聘27人考试备考题库及答案解析
- 2026广西北海银滩开发投资股份有限公司招聘1人笔试备考题库及答案解析
- 2026届湖南长沙明德旗舰第二学期期末初三联考语文试题含解析
- 2025-2026学年陕西省西安市陕西师大附中初三下期中考试(英语试题文)含解析
- 2026届湖南省长沙市雅实校初三下期第一次月英语试题含解析
- 2025年初中劳动技术教师招聘考试测试卷及答案
- 2026广东中山市神湾镇神湾社区居民委员会招聘1人考试备考试题及答案解析
- 《红领巾相约中国梦》课件2025-2026学年湖南文艺版音乐三年级下册
- 2026江苏徐州地铁集团下属运营公司招聘笔试备考题库及答案解析
- 2026甘肃平凉华亭市招聘社区工作者10人考试参考试题及答案解析
- 优先内部采购制度
- 医药招商业务管理制度
- 国开2026年春季《形势与政策》大作业答案
- 基于数字孪生技术的草原监测与智能放牧管理系统研究
- 2026年六安职业技术学院单招职业适应性考试题库含答案详解(培优)
- 2025年福建海峡企业管理服务有限公司招聘5人笔试历年典型考点题库附带答案详解2套试卷
评论
0/150
提交评论