谁有老师的源代码,能发一下给我吗,谢谢
谁有老师的源代码,能发一下给我吗,谢谢
谁有老师的源代码,能发一下给我吗,谢谢
2018-04-01
【蜘蛛侠TG@abin789】-10000
【蜘蛛侠TG@abin789】-10001
【蜘蛛侠TG@abin789】-10002
【蜘蛛侠TG@abin789】-10003
【蜘蛛侠TG@abin789】-10004
【蜘蛛侠TG@abin789】-10005
【蜘蛛侠TG@abin789】-10006
【蜘蛛侠TG@abin789】-10007
【蜘蛛侠TG@abin789】-10008
【蜘蛛侠TG@abin789】-10009
【蜘蛛侠TG@abin789】-10010
【蜘蛛侠TG@abin789】-10011
【蜘蛛侠TG@abin789】-10012
【蜘蛛侠TG@abin789】-10013
【蜘蛛侠TG@abin789】-10014
【蜘蛛侠TG@abin789】-10015
【蜘蛛侠TG@abin789】-10016
【蜘蛛侠TG@abin789】-10017
【蜘蛛侠TG@abin789】-10018
【蜘蛛侠TG@abin789】-10019
【蜘蛛侠TG@abin789】-10020
【蜘蛛侠TG@abin789】-10021
【蜘蛛侠TG@abin789】-10022
【蜘蛛侠TG@abin789】-10023
【蜘蛛侠TG@abin789】-10024
【蜘蛛侠TG@abin789】-10025
【蜘蛛侠TG@abin789】-10026
【蜘蛛侠TG@abin789】-10027
【蜘蛛侠TG@abin789】-10028
【蜘蛛侠TG@abin789】-10029
【蜘蛛侠TG@abin789】-10030
【蜘蛛侠TG@abin789】-10031
【蜘蛛侠TG@abin789】-10032
【蜘蛛侠TG@abin789】-10033
【蜘蛛侠TG@abin789】-10034
【蜘蛛侠TG@abin789】-10035
【蜘蛛侠TG@abin789】-10036
【蜘蛛侠TG@abin789】-10037
【蜘蛛侠TG@abin789】-10038
【蜘蛛侠TG@abin789】-10039
【蜘蛛侠TG@abin789】-10040
【蜘蛛侠TG@abin789】-10041
【蜘蛛侠TG@abin789】-10042
【蜘蛛侠TG@abin789】-10043
【蜘蛛侠TG@abin789】-10044
【蜘蛛侠TG@abin789】-10045
【蜘蛛侠TG@abin789】-10046
【蜘蛛侠TG@abin789】-10047
【蜘蛛侠TG@abin789】-10048
【蜘蛛侠TG@abin789】-10049
【蜘蛛侠TG@abin789】-10050
【蜘蛛侠TG@abin789】-10051
【蜘蛛侠TG@abin789】-10052
【蜘蛛侠TG@abin789】-10053
【蜘蛛侠TG@abin789】-10054
【蜘蛛侠TG@abin789】-10055
【蜘蛛侠TG@abin789】-10056
【蜘蛛侠TG@abin789】-10057
【蜘蛛侠TG@abin789】-10058
【蜘蛛侠TG@abin789】-10059
【蜘蛛侠TG@abin789】-10060
【蜘蛛侠TG@abin789】-10061
【蜘蛛侠TG@abin789】-10062
【蜘蛛侠TG@abin789】-10063
【蜘蛛侠TG@abin789】-10064
【蜘蛛侠TG@abin789】-10065
【蜘蛛侠TG@abin789】-10066
【蜘蛛侠TG@abin789】-10067
【蜘蛛侠TG@abin789】-10068
【蜘蛛侠TG@abin789】-10069
【蜘蛛侠TG@abin789】-10070
【蜘蛛侠TG@abin789】-10071
【蜘蛛侠TG@abin789】-10072
【蜘蛛侠TG@abin789】-10073
【蜘蛛侠TG@abin789】-10074
【蜘蛛侠TG@abin789】-10075
【蜘蛛侠TG@abin789】-10076
【蜘蛛侠TG@abin789】-10077
【蜘蛛侠TG@abin789】-10078
【蜘蛛侠TG@abin789】-10079
【蜘蛛侠TG@abin789】-10080
【蜘蛛侠TG@abin789】-10081
【蜘蛛侠TG@abin789】-10082
【蜘蛛侠TG@abin789】-10083
【蜘蛛侠TG@abin789】-10084
【蜘蛛侠TG@abin789】-10085
【蜘蛛侠TG@abin789】-10086
【蜘蛛侠TG@abin789】-10087
【蜘蛛侠TG@abin789】-10088
【蜘蛛侠TG@abin789】-10089
【蜘蛛侠TG@abin789】-10090
【蜘蛛侠TG@abin789】-10091
【蜘蛛侠TG@abin789】-10092
【蜘蛛侠TG@abin789】-10093
【蜘蛛侠TG@abin789】-10094
【蜘蛛侠TG@abin789】-10095
【蜘蛛侠TG@abin789】-10096
【蜘蛛侠TG@abin789】-10097
【蜘蛛侠TG@abin789】-10098
【蜘蛛侠TG@abin789】-10099
【蜘蛛侠TG@abin789】-10100
【蜘蛛侠TG@abin789】-10101
【蜘蛛侠TG@abin789】-10102
【蜘蛛侠TG@abin789】-10103
【蜘蛛侠TG@abin789】-10104
【蜘蛛侠TG@abin789】-10105
【蜘蛛侠TG@abin789】-10106
【蜘蛛侠TG@abin789】-10107
【蜘蛛侠TG@abin789】-10108
【蜘蛛侠TG@abin789】-10109
【蜘蛛侠TG@abin789】-10110
【蜘蛛侠TG@abin789】-10111
【蜘蛛侠TG@abin789】-10112
【蜘蛛侠TG@abin789】-10113
【蜘蛛侠TG@abin789】-10114
【蜘蛛侠TG@abin789】-10115
【蜘蛛侠TG@abin789】-10116
【蜘蛛侠TG@abin789】-10117
【蜘蛛侠TG@abin789】-10118
【蜘蛛侠TG@abin789】-10119
【蜘蛛侠TG@abin789】-10120
【蜘蛛侠TG@abin789】-10121
【蜘蛛侠TG@abin789】-10122
【蜘蛛侠TG@abin789】-10123
【蜘蛛侠TG@abin789】-10124
【蜘蛛侠TG@abin789】-10125
【蜘蛛侠TG@abin789】-10126
【蜘蛛侠TG@abin789】-10127
【蜘蛛侠TG@abin789】-10128
【蜘蛛侠TG@abin789】-10129
【蜘蛛侠TG@abin789】-10130
【蜘蛛侠TG@abin789】-10131
【蜘蛛侠TG@abin789】-10132
【蜘蛛侠TG@abin789】-10133
【蜘蛛侠TG@abin789】-10134
【蜘蛛侠TG@abin789】-10135
【蜘蛛侠TG@abin789】-10136
【蜘蛛侠TG@abin789】-10137
【蜘蛛侠TG@abin789】-10138
【蜘蛛侠TG@abin789】-10139
【蜘蛛侠TG@abin789】-10140
【蜘蛛侠TG@abin789】-10141
【蜘蛛侠TG@abin789】-10142
【蜘蛛侠TG@abin789】-10143
【蜘蛛侠TG@abin789】-10144
【蜘蛛侠TG@abin789】-10145
【蜘蛛侠TG@abin789】-10146
【蜘蛛侠TG@abin789】-10147
【蜘蛛侠TG@abin789】-10148
【蜘蛛侠TG@abin789】-10149
【蜘蛛侠TG@abin789】-10150
【蜘蛛侠TG@abin789】-10151
【蜘蛛侠TG@abin789】-10152
【蜘蛛侠TG@abin789】-10153
【蜘蛛侠TG@abin789】-10154
【蜘蛛侠TG@abin789】-10155
【蜘蛛侠TG@abin789】-10156
【蜘蛛侠TG@abin789】-10157
【蜘蛛侠TG@abin789】-10158
【蜘蛛侠TG@abin789】-10159
【蜘蛛侠TG@abin789】-10160
【蜘蛛侠TG@abin789】-10161
【蜘蛛侠TG@abin789】-10162
【蜘蛛侠TG@abin789】-10163
【蜘蛛侠TG@abin789】-10164
【蜘蛛侠TG@abin789】-10165
【蜘蛛侠TG@abin789】-10166
【蜘蛛侠TG@abin789】-10167
【蜘蛛侠TG@abin789】-10168
【蜘蛛侠TG@abin789】-10169
【蜘蛛侠TG@abin789】-10170
【蜘蛛侠TG@abin789】-10171
【蜘蛛侠TG@abin789】-10172
【蜘蛛侠TG@abin789】-10173
【蜘蛛侠TG@abin789】-10174
【蜘蛛侠TG@abin789】-10175
【蜘蛛侠TG@abin789】-10176
【蜘蛛侠TG@abin789】-10177
【蜘蛛侠TG@abin789】-10178
【蜘蛛侠TG@abin789】-10179
【蜘蛛侠TG@abin789】-10180
【蜘蛛侠TG@abin789】-10181
【蜘蛛侠TG@abin789】-10182
【蜘蛛侠TG@abin789】-10183
【蜘蛛侠TG@abin789】-10184
【蜘蛛侠TG@abin789】-10185
【蜘蛛侠TG@abin789】-10186
【蜘蛛侠TG@abin789】-10187
【蜘蛛侠TG@abin789】-10188
【蜘蛛侠TG@abin789】-10189
【蜘蛛侠TG@abin789】-10190
【蜘蛛侠TG@abin789】-10191
【蜘蛛侠TG@abin789】-10192
【蜘蛛侠TG@abin789】-10193
【蜘蛛侠TG@abin789】-10194
【蜘蛛侠TG@abin789】-10195
【蜘蛛侠TG@abin789】-10196
【蜘蛛侠TG@abin789】-10197
【蜘蛛侠TG@abin789】-10198
【蜘蛛侠TG@abin789】-10199
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./common/bootstrap.min.css">
<link rel="stylesheet" href="./common/font_awesome/css/font-awesome.css">
<script src="./common/angular1.7.js"></script>
<!-- <script src="./js/index.js"></script> -->
<style>
.input_result{
position:relative;
top:-27px;
left:180px;
}
.error{
color:#a10;
}
/*p.error{
display:none;
}*/
p.success{
color:#3c763d;
}
input.error{
border:1px solid #a10;
}
.wrapper{
width:200px;
margin:30px auto;
}
</style>
<script>
//使用$scope作为dom里的一个域,1---创建和部署一个controller
angular.module('myApp',[])
.controller('SignUpController',function($scope){//控制器名称和一个回调函数
$scope.userdata={};//所有提交的表单数据存入此地
$scope.submitForm=function(){//提交时的一个提交函数
console.log($scope.userdata);
if($scope.signUpForm.$invalid){
alert("请检查您的信息");
}else{
alert("提交成功");
}
}
})
.directive('compare',function(){//2----传入用户数据和创建验证规则
var o={};//给一个对象
o.strict="AE";//作用在元素和属性上的
o.scope={//scope等于一个对象
orgText:'=compare'//之前的字符,原先的数据
}
o.require='ngModel';
o.link=function(sco,ele,att,con){//主函数,传参(域,当前元素,当前属性,ngModelcontroller)
con.$validators.compare=function(v){//用这个controller的validators加一个compare方法
return v==sco.orgText;//此回调函数传入一个值(用户输入的值),即新输入和原先输入的是否一样
}
sco.$watch('orgText',function(){//watch--orgText是否有变化
con.$validate();//一旦有变化,开始验证
})
}
return o;
})
</script>
</head>
<body ng-app="myApp" ng-controller="SignUpController">
<div class="wrapper">
<h2>注册</h2>
<form name="signUpForm" ng-submit="submitForm()">
<div class="form-group" ng-class="{'has-success':signUpForm.username.$valid}">
<label for="">用户名:</label>
<input
type="text"
name="username"
type="text"
ng-model="userdata.username"
required
ng-minlength="4"
ng-maxlength="12"
class="form-control">
<p class="fa fa-check input_result success" ng-if="signUpForm.username.$valid"></p>
<p class="error"
ng-if=
"(signUpForm.username.$error.minlength||
signUpForm.username.$error.maxlength)&&
signUpForm.username.$touched"
>用户名长度应在4-12位之间</p>
<p class="error"
ng-if=
"signUpForm.username.$error.required &&
signUpForm.username.$touched"
>用户名不能为空</p>
</div>
<div class="form-group" ng-class="{'has-success':signUpForm.password.$valid}">
<label for="">密码:</label>
<input
type="text"
name="password"
type="password"
ng-model="userdata.password"
required
ng-minlength="4"
ng-maxlength="12"
class="form-control">
<p class="fa fa-check input_result success" ng-if="signUpForm.password.$valid"></p>
<p class="error"
ng-if=
"(signUpForm.password.$error.minlength||
signUpForm.password.$error.maxlength)&&
signUpForm.password.$touched"
>用户名长度应在4-12位之间</p>
<p class="error"
ng-if=
"signUpForm.password.$error.required &&
signUpForm.password.$touched"
>密码不能为空</p>
</div>
<div class="form-group" ng-class="{'has-success':signUpForm.password2.$valid}">
<label for="">确认密码:</label>
<input
type="text"
name="password2"
type="password"
ng-model="userdata.password2"
compare="userdata.password"
required
class="form-control">
<p class="fa fa-check input_result success" ng-if="signUpForm.password2.$valid"></p>
<p class="error"
ng-if=
"signUpForm.password2.$error.compare &&
signUpForm.password2.$touched"
>两次输入密码不一致</p>
<p class="error"
ng-if=
"signUpForm.password2.$error.required &&
signUpForm.password2.$touched"
>确认密码不能为空</p>
</div>
<div class="form-group">
<button class="btn btn-primary">登录</button>
</div>
</form>
</div>
</body>
</html>
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./common/bootstrap.min.css">
<script src="./common/angular1.7.js"></script>
<!-- <script src="./js/index.js"></script> -->
<style>
.red{
background:#f40;
}
.error{
border:1px solid #a10;
color:#f40;
}
.wrapper{
width:200px;
margin:0 auto;
}
</style>
<script>
//使用$scope作为dom里的一个域,1---创建和部署一个controller
angular.module('myApp',[])
.controller('SignUpController',function($scope){//控制器名称和一个回调函数
$scope.userdata={};//所有提交的表单数据存入此地
$scope.submitForm=function(){//提交时的一个提交函数
console.log($scope.userdata);
if($scope.signUpForm.$invalid){
alert("请检查您的信息");
}else{
alert("提交成功");
}
}
})
.directive('compare',function(){//2----传入用户数据和创建验证规则
var o={};//给一个对象
o.strict="AE";//作用在元素和属性上的
o.scope={//scope等于一个对象
orgText:'=compare'//之前的字符,原先的数据
}
o.require='ngModel';
o.link=function(sco,ele,att,con){//主函数,传参(域,当前元素,当前属性,ngModelcontroller)
con.$validators.compare=function(v){//用这个controller的validators加一个compare方法
return v==sco.orgText;//此回调函数传入一个值(用户输入的值),即新输入和原先输入的是否一样
}
sco.$watch('orgText',function(){//watch--orgText是否有变化
con.$validate();//一旦有变化,开始验证
})
}
return o;
})
</script>
</head>
<body ng-app="myApp" ng-controller="SignUpController">
<div class="wrapper">
<h2>注册</h2>
<form name="signUpForm" ng-submit="submitForm()">
<div class="form-group" ng-class="{'has-success':signUpForm.username.$valid}">
<label for="">用户名:</label>
<input
type="text"
name="username"
type="text"
ng-model="userdata.username"
required
ng-minlength="4"
ng-maxlength="12"
class="form-control">
<p class="error"
ng-if=
"(signUpForm.username.$error.minlength||
signUpForm.username.$error.maxlength)&&
signUpForm.username.$touched"
>用户名长度应在4-12位之间</p>
<p class="error"
ng-if=
"signUpForm.username.$error.required &&
signUpForm.username.$touched"
>用户名不能为空</p>
</div>
<div class="form-group" ng-class="{'has-success':signUpForm.password.$valid}">
<label for="">密码:</label>
<input
type="text"
name="password"
type="password"
ng-model="userdata.password"
required
ng-minlength="4"
ng-maxlength="12"
class="form-control">
<p class="error"
ng-if=
"(signUpForm.password.$error.minlength||
signUpForm.password.$error.maxlength)&&
signUpForm.password.$touched"
>用户名长度应在4-12位之间</p>
<p class="error"
ng-if=
"signUpForm.password.$error.required &&
signUpForm.password.$touched"
>密码不能为空</p>
</div>
<div class="form-group" ng-class="{'has-success':signUpForm.password2.$valid}">
<label for="">确认密码:</label>
<input
type="text"
name="password2"
type="password"
ng-model="userdata.password2"
compare="userdata.password"
required
class="form-control">
<p class="error"
ng-if=
"signUpForm.password2.$error.compare &&
signUpForm.password2.$touched"
>两次输入密码不一致</p>
<p class="error"
ng-if=
"signUpForm.password2.$error.required &&
signUpForm.password2.$touched"
>确认密码不能为空</p>
</div>
<div class="form-group">
<button class="btn btn-primary">登录</button>
</div>
</form>
</div>
</body>
</html>
跟着视频一个一个敲的,lib文件夹里的文件也是按照视频里的要求下的,也算是源文件了吧。
举报