📜  超时 angularjs - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:50.655000             🧑  作者: Mango

代码示例2
var myapp = angular.module("myapp", []);

myapp.controller("DIController", function($scope, $timeout){

    $scope.callAtTimeout = function() {
        console.log("$scope.callAtTimeout - Timeout occurred");
    }

    $timeout( function(){ $scope.callAtTimeout(); }, 3000);
});