Angular 学习笔记——$interpolateProvide
<!DOCTYPE HTML> <html ng-app="myApp"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <script src="angular.min.js"></script> <script> var m1 = angular.module('myApp',[]); m1.config(['$interpolateProvider',function($interpdateProvider){ $interpdateProvider.startSymbol('@@'); $interpdateProvider.endSymbol('@@'); }]); m1.controller('may',['$scope',function($scope){ $scope.howtime = 'hellooooo' }]) </script> </head> <body ng-controller='may'> <p>@@howtime@@</p> </body> </html>