angularJs添加
来源:互联网 发布:淘宝网店团队人员 编辑:程序博客网 时间:2024/06/08 04:31
$scope.add=function(){
if($scope.formha){
$scope.formha=false;
}else{
$scope.formha=true;
}
}
$scope.formtijiao=function(){
var a=0;
if($scope.addid==""||$scope.addid==null){
$scope.ti1=true;
}else{
$scope.ti1=false;
a++;
}
if($scope.addname==""||$scope.addname==null){
$scope.ti2=true;
}else{
$scope.ti2=false;
a++;
}
if($scope.addmoney==""||$scope.addmoney==null){
$scope.ti3=true;
}else{
$scope.ti3=false;
a++;
}
if(a!=3){
alert("请注意输入条件");
}else{
var wo={
"id":parseInt($scope.addid),
"name":$scope.addname,
"money":parseInt($scope.addmoney),
"time":time4,
"state": false
};
$scope.products.push(wo);
}
if($scope.formha){
$scope.formha=false;
}else{
$scope.formha=true;
}
}
$scope.formtijiao=function(){
var a=0;
if($scope.addid==""||$scope.addid==null){
$scope.ti1=true;
}else{
$scope.ti1=false;
a++;
}
if($scope.addname==""||$scope.addname==null){
$scope.ti2=true;
}else{
$scope.ti2=false;
a++;
}
if($scope.addmoney==""||$scope.addmoney==null){
$scope.ti3=true;
}else{
$scope.ti3=false;
a++;
}
if(a!=3){
alert("请注意输入条件");
}else{
var wo={
"id":parseInt($scope.addid),
"name":$scope.addname,
"money":parseInt($scope.addmoney),
"time":time4,
"state": false
};
$scope.products.push(wo);
}
阅读全文
0 0
- angularJs添加
- angularJS添加
- angularjs 添加loading
- angularJS添加事件监听
- AngularJS添加样式
- AngularJS 添加Click事件
- AngularJS点击添加样式
- AngularJs查询,添加,修改
- angularjs添加用户
- angularJs表格添加删除
- AngularJs实现添加排序
- angularjs添加和排序
- angularjs添加排序查询
- angularJs 用户添加
- angularjs排序、查询、添加
- angularjs路由、添加
- angularjs路由、添加元素
- Angularjs添加用户
- 强化学习基础四--Policy Gradient 理论推导
- 学困生别担心,MindManager思维导图来帮你
- ETC+SC挖矿软件-教程Chinaminer公测版,大神检测无抽水
- @PropertiesSource注解读取配置文件中的数据
- spring mvc: The request sent by the client was syntactically incorrect ()
- angularJs添加
- mapreduce系列(3)----在window端远程提交mr程序运行
- 如何打造你的独立观点
- 一日一文(5)
- Host is not allowed to connect to this MySQL server解决方法
- 【Scikit-Learn 中文文档】随机梯度下降
- bzoj1801: [Ahoi2009]chess 中国象棋(Dp)
- c++ open_file函数
- 酷派大神F1 极速版 卡刷 8297-t01