1、引用angular JS的脚本
3、数据绑定
4、脚本编写
<script src="../framework/js/angular/angular.min.js" type="text/javascript" charset="utf-8"></script>
2、区域命名
<html ng-app="myApp">
<body class="gray-bg" ng-controller="myController">
3、数据绑定
<select ng-model="selecteProvince" id="loc_province" class="selecte-area">
</select>
4、脚本编写
//初始化app
var myApp = angular.module('myApp', []);
//控制器管理
myApp.controller('myController', function($scope, $http, $window) {
$scope.submitToHtml = function() {
alert($('#loc_province').find("option:selected").text() + ' - ' + $('#loc_city').find("option:selected").text() + ' - ' + $('#loc_town').find("option:selected").text());
}
$scope.cancelToHtml = function() {
$window.location.href = "regional_management.html";
}
});