- 博客(6)
- 问答 (1)
- 收藏
- 关注
原创 angularjs双向绑定input内容框防止抖动方法
在watch中增加一个timeout机制 var timeout; $scope.$watch('input', function(inputText){ if(inputText){ if(timeout) { $timeout.cancel(timeout); } timeout = $timeout(funtion(){ do something with inp
2015-11-27 12:51:36 2537 2
原创 关于angular中指令调用controller的方法:&
html: js: var app = angular.module('app', []); app.controller('MyCtrl', function($scope){ $sc
2015-11-18 13:59:13 6456
原创 angular指令中scope三个符号的说明
1、@:把当前属性作为字符串传递。还可以绑定外层scope的值,在属性值中插入{{}}即可。 2、=:与父scope中的属性进行双向绑定。 3、&:传递一个来自父scope的函数,稍后调用。
2015-11-18 13:18:43 1808
原创 关于angular中controller和指令交互数据:@
首先看代码: html: bb.js var app = angular.module('app', []); app.controller('MyCtrl', function($scope){ $scope.ctrlFlavor =
2015-11-18 13:02:26 6636 1
原创 关于angularjs的指令中的scope
html文件: strengh strengh and speed strengh and speed and light aa.js文件: /** * Module * * Description
2015-11-17 14:18:10 1534
原创 angularjs 的controller的三种写法
angularjs 的controller其实就是一个方法,它有三种写法: 第一种: var AppController = ['$scope', function($scope){ $scope.notifyServiceOnChage = function(){ console.log($scope.windowHeight); }; }]; app.con
2015-11-13 13:48:50 9791
空空如也
cxf的wsdl2java解析wsdl的时候报错
2015-06-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人