标签:javascrip text timeout utf-8 char var func scope 定时
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="angular.js" ></script>
<script>
var app = angular.module("myApp",[]);
app.controller("myCtrl",function($scope,$timeout){
$scope.name = "张三";
$timeout(function(){
$scope.name = "李四";
},3000);
});
</script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<p>3s之后变变变:{{name}}</p>
</body>
</html>
标签:javascrip text timeout utf-8 char var func scope 定时
原文地址:http://www.cnblogs.com/qq402792989/p/7673936.html