想用js動(dòng)態(tài)觸發(fā)click事件,但是報(bào)錯(cuò),各位是怎么實(shí)現(xiàn)的? proApp.controller('jectController', ['$scope', '$timeout', function($scope, $timeout) { $scope.gmtArr = GMT; // 時(shí)區(qū)綁定 $scope.proNext = function() { // $timeout(function() { angular.element('.project-next').triggerHandler('click'); // }); }; }]);不使用jquery里面的方法,用angular書寫
angular 如何觸發(fā)trigger 事件
紅顏莎娜
2018-12-26 15:19:44