AngularJS
文章平均质量分 60
来日未必方长
一杯敬自由一杯敬死亡
展开
-
AngularJS 服务
angular服务 概念: angular的服务就是一个函数,或者对象。 使用步骤: 1.放入控制器 --> var mo = angular.module("myApp",[]); mo.contro原创 2017-12-12 15:08:08 · 149 阅读 · 0 评论 -
AngularJS 自定义服务
自定义服务 var mk = angular.module("myApp",[]); mk.controller("myCtrl",function($scope,myService){ $scope.dianwo = function(){ myService.chi1(); myService.chi2("吃鸭吃鸭吃鸭","吃鱼吃鱼吃鱼原创 2017-12-12 15:09:16 · 153 阅读 · 0 评论 -
AngularJS 路由及传值功能
注意:(#/shouye , #/gouwuche , #me 为同一项目下的xml文件) 配置路由 ul{ list-style: none; } a{ text-decoration: none; color: red; } #/shouye">首页 购物车 我的 var mk =原创 2017-12-12 15:12:05 · 267 阅读 · 0 评论 -
AngularJS 表格案例(排序,批删,查询,全选)
默认数据: $scope.goods = [{ "id": 1511, "name": "苹果4", "user": "张三", "tel": 1311131313, "price": 3333, "addr": "河北", "date": new Date().toLocaleDateString(), "state": false }] 属性排序(ID):原创 2017-12-14 14:45:41 · 526 阅读 · 1 评论 -
AngularJS操作表格的增删改查
源代码: .tab { text-align: center; margin-top: 20px; } .fie{ margin-top: 30px; width: 250px; } .ok{ width: 60px; margin-left: 80px; } .tr1:nth-of-type(odd){原创 2017-12-16 11:38:52 · 379 阅读 · 0 评论 -
android 简单与js交互
权限:<uses-permission android:name="android.permission.INTERNET"></uses-permission>MainActicity:import android.content.DialogInterface;import android.os.Bundle;import android.support.v7.app....原创 2018-04-10 11:49:22 · 204 阅读 · 0 评论