自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 自定义VIew实现加减器(eg:京东)

public class MyView extends FrameLayout { //继承FrameLayout 重写VIew的四个构造方法 private Button subtract; private Button insert; private EditText num; public MyView(Context context) {

2018-01-27 19:51:02 231

原创 计算年龄

//获取年龄 传值 出生日期 $scope.getAge=function(mybirthday){ //获取当前时间 var newdate=new Date();//今天 mybirthday=new Date(mybirthday);//出生日期 var age=newdate.getTime()-mybirthday.getTime(

2018-01-16 16:16:39 274

原创 省市的三级联动

var app=angular.module("myApp",[]); app.controller("myCtrl",function($scope){ //准备数据 $scope.prolist=[ { "pro":"山西", "city":[ { "name":"运城", "area":[{"an

2018-01-15 13:55:13 246

原创 Angular实现批量删除的功能

//批量删除 $scope.pl=function(){ var che= $("input[type='checkbox']:checked"); for (var i=0;i<che.length;i++) { //复选框的父节点 是 td td的父节点是tr 删除tr che[i].parentNode.parent

2018-01-15 13:40:38 374

原创 Angular实现全选全不选功能

//全选 $scope.bigck=function(){ var smlck=$("input[type='checkbox']");//获取到选中的CheckBox //循环遍历 for(var i=0;i<smlck.length;i++){ if(smlck[i].checked==true){//如果其他的复选框选中的话 f

2018-01-15 13:38:23 502

原创 Angular数量--

//减号 数量-- $scope.jian=function($index){ $scope.datas[$index].num=$scope.datas[$index].num-1; if($scope.datas[$index].num==1){ $scope.datas[$index].splice($index,1); } }

2018-01-12 20:29:57 142

原创 Angular购物车计算总价

//总计 $scope.allSum=function(){ var allprice=0;//定义总价 for(var i=0;i<$scope.datas.length;i++){ allprice+= $scope.datas[i].num*$scope.datas[i].price; } return allprice; }

2018-01-12 20:27:44 357

原创 Angular项目

table tr:nth-child(even){ background: burlywood; } table tr:nth-child(odd){ background: cadetblue; } var app=angular.module("myApp",[]); app.controller("myCtrl",function($

2018-01-12 15:55:58 424

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除