自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 bottomBar

activity_main<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    a...

2018-07-01 20:52:08 315

原创 GCC

activity_main<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    and...

2018-07-01 19:52:14 218

原创 leilei

fragment_class<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="horizon...

2018-07-01 18:56:49 264

原创 梯形加多条目

activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xm...

2018-05-30 19:24:05 228

原创 梯形RecyclerView全解

activity_main<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"...

2018-05-30 18:56:50 331

原创 点击回调

public class RecyclerViewClickListener implements RecyclerView.OnItemTouchListener {    private int mLastDownX,mLastDownY;    //该值记录了最小滑动距离    private int touchSlop ;    private OnItemClickListener mL...

2018-05-27 19:02:33 305

原创 工具类

public interface OnNetListener {    void onSuccess(String result);    void onFailed(Exception e);}public class OkhttpUtils {    private static OkhttpUtils instance;    private final OkHttpClient okHtt...

2018-05-27 18:59:51 144

原创 登录注册

//loginmainxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h

2018-05-03 20:46:33 390

原创 京东分类

//主Main布局xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren

2018-05-03 11:27:28 200

原创 头像上传

activity_main    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_w

2018-01-19 09:45:23 326

原创 购物车动画登录

布局activity_main    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    an

2018-01-18 15:03:01 339

原创 购物车的订单查询

布局activity_main    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    an

2018-01-18 14:14:53 1059

原创 自定义View画圆及拖动

activity_mainandroid:orientation="vertical"Activity_Mainimport android.support.v7.app.AppCompatActivity;import android.os.Bundle;/** * 自定义控件: * 1.继承View * 2.重写构造方

2017-12-26 15:02:15 311

原创 验证清空表单

.first{background: darkgray;}tbody tr:nth-child(odd){background: aliceblue;}tbody tr:nth-child(even){background: blue;}//改变第一行的颜色$(function(){$("thead tr").addClass("firs

2017-12-21 15:38:26 408

原创 购物车的趣艺工坊

-->var app = angular.module("myApp", ["ionic"]);app.controller("myCtrl", function($scope) {$scope.items = [{name: "纯手工制作木质时钟精致家具",price: 150,num: 1,url: "../image/a.png",state: f

2017-12-20 13:54:17 243

原创 格式,变色,适屏

* {margin: 0px auto;padding: 0px;}body{background: url(../img/afggffbfgh.jpg) repeat-y;}.header {width: 800px;}.nav {background: #888888;height: 40px;width: 800px;bor

2017-11-28 14:18:51 283

原创 购物车加减

td,th{                width: 150px;                text-align: left;            }            table{                width: 800px;            }            .num{                width: 70p

2017-11-23 10:32:22 259

原创 购物车的增删改查

var app = angular.module("myApp", []);app.controller("myCtrl", function($scope) {$scope.products = [{"id": 80,"name": "iPhone","price": 5400,state: false}, {"id": 1200,"name": "ipad

2017-11-22 13:07:00 1499

原创 购物车修改

var app = angular.module("myApp", []);app.controller("myCtrl", function($scope) {$scope.products = [{"id": 80,"name": "iPhone","price": 5400,state: false}, {"id": 1200,"name": "ipad

2017-11-19 19:25:21 403

原创 购物车angularJS删除和模糊查询还有排序

var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope){$scope.products = [{"id":80,"name":"iphone","price":5400},{"id":1200,"name":"ipad mini","price":2200},

2017-11-17 19:15:00 245

原创 购物车带删除

商品订单(增删改查):新增订单;批量删除,发货;模糊查询,下拉菜单内容过滤(含时间);全选反选,列名排序            .first{            background-color: #007aff;        }        /*  表格奇数行变 中绿 色     */        tbody tr:nth-child(odd){     

2017-11-17 13:10:19 404

原创 ionic tables 传值

angular.module('ionicApp', ['ionic']).controller('RootCtrl', function($scope) {$scope.onControllerChanged = function(oldCor, oldIndex, newController, newIndex) {console.log('Controller chang

2017-11-16 20:16:26 454

原创 ionic滑动

var app = angular.module("myApp",['ionic']);app.controller("myCtrl",function($scope,$ionicScrollDelegate){$scope.name = "张三";$scope.scrollTop = function(){$ionicScrollDelegate.scrollTop();};

2017-11-16 20:14:50 217

原创 route路由

/* 3.创建AngularJS主应用程序,注入路由的支持服务。ngRoute */var app = angular.module("myApp",['ngRoute']);/* 4.使用config配置函数,配置路由规则 */app.config(["$routeProvider",function($routeProvider){$routeProvider.when("

2017-11-15 18:30:19 220

原创 Myprovider服务

var app = angular.module("myApp",[]);//配置函数:做程序的初始化配置。app.config(function(myProviderProvider){myProviderProvider.setAge(20);//myServiceProvider.hehe(30);});app.controller("myCtrl",function

2017-11-14 20:21:53 271

原创 自定义provider服务

var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope,myProvider){$scope.food = myProvider.food;});//自定义provider服务app.provider("myProvider",function(){this.$get = fu

2017-11-14 20:20:48 268

原创 自定义service服务

var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope,myService){$scope.name = myService.name;});//自定义service服务app.service("myService",function(){this.name = "张三";

2017-11-14 20:19:47 522

原创 factory查看年龄

var a = 20;var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope,$myFactory){$scope.name = $myFactory.name;//$scope.age = $myFactory.age;$scope.newAge;$scope.fun

2017-11-14 20:18:59 206

原创 interval时间

var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope,$interval){$scope.date = new Date().toLocaleTimeString();$interval(function(){//alert(date.toDateString());$scope

2017-11-14 20:18:18 569

原创 Http网络请求数据

var app = angular.module("myApp",[]);//注入$http对象app.controller("myCtrl",function($scope,$http){//调用$http()请求服务器。$http({method:"get",//请求方式url:"haha.json"//请求路径}).then(function succes

2017-11-14 20:17:39 302

原创 jQuery案例

td {text-align: center;}$(function() {var arr = [["东城","西城","崇文","宣武","朝阳","丰台","石景山","海淀","门头沟","房山","通州","顺义","昌平","大兴","平谷","怀柔","密云","延庆" ],["黄浦","卢湾","徐汇","长宁","静安","普陀","闸北",

2017-11-12 19:40:20 221

原创 AngularJS过滤器

var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope,$rootScope){$scope.money = 100;//创建时间对象var date = new Date();$scope.date = date;$scope.num = 123.456;$scope

2017-11-10 19:25:31 246

原创 AngularJS控制器

作者:1719586064@qq.com        时间:2017-11-10        描述:引入AngularJS应用程序        -->var app = angular.module("myApp",[]);app.controller("myCtrl",function($scope){$scope.a = 3;$sc

2017-11-10 14:06:20 188

原创 AngularJS指令

作者:1719586064@qq.com        时间:2017-11-10        描述:引入AngularJS应用程序        -->                        /*定义AngularJS应用程序对象*/                var app = angular.module("myApp",[]);     

2017-11-10 14:05:33 198

原创 Angular表达式

算术运算:{{3+5}}拼接字符串:{{"Hello"+"1510C"}}关系运算:{{3逻辑运算符:{{true && false}}算术运算:{{3+5}}//AngularJS指令测试ng-init:{{a+b}}测试ng-init数组:{{c[0]}}测试ng-click数组: {{a}}a的值是:{{a}}

2017-11-10 14:04:51 453

原创 jQuery动画

jQuery动画    $(function(){$("button:eq(0)").click(function(){$("img").hide(2000,function(){alert("隐藏了"); });});$("button:eq(1)").click(function(){$("img").show(2000,function(){

2017-11-09 20:00:01 166

原创 阻止默认事件

阻止默认事件    $(function(){$("body").click(function(){alert("body");});$("div").click(function(){alert("div");return false; });$("p").click(function(e){alert("p");e.stopPropa

2017-11-09 19:59:17 348

原创 jQuery事件

jQuery事件    $(function(){$("button:eq(0)").click(function(){$("p").bind("mouseover mouseout",[1,2,3],function(event){alert(event.data[1]);});});$("button:eq(1)").click(function(){

2017-11-09 19:58:41 219

原创 文本节点操作

文本节点操作$(function(){$(":submit").click(function(){//alert($("input:eq(0)").val());//alert($("ul").html());//alert($("ul").text());//$("p").text("嘿嘿");$("p").html("嘿嘿");});

2017-11-09 19:58:08 324

原创 节点属性操作

节点属性操作.myClass{width:200px;height:200px;background-color:#F39;border: 1px solid #0C0;}        $(function(){$("button:eq(0)").click(function(){alert($("p").attr("title"));

2017-11-09 19:57:07 341

空空如也

空空如也

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

TA关注的人

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