亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

angular.js - After angularjs implements the click event, it takes effect in firefox but does not work in 360 browser
伊謝爾倫
伊謝爾倫 2017-05-15 16:56:34
0
3
764

In the process of learning angularjs, I did a small exercise of selecting an area
After implementation, the function cannot be implemented in different browsers

<h5 class="titright">選擇區(qū)域:</h5>
        <select name="addressid1" ng-model="query">
            <option value="no">請選擇</option>
            <option  value="{{phone.provinceid}}" ng-repeat="phone in phones" ng-click="getcity()">{{phone.province}}</option>
        </select>
        <select name="addressid2" ng-model="mycity" ng-show="num=='1'">
            <option value="no">請選擇</option>
            <option value="{{phone.cityid}}" ng-repeat="phone in city| filter:query" ng-click="getareas()">{{phone.city}}</option>
        </select>
        <select name="addressid3" ng-show="num1=='1'">
            <option value="no">請選擇</option>
            <option value="{{phone.areaid}}" ng-repeat="phone in areas| filter:mycity" >{{phone.area}}</option>
        </select>

This is js

var phonecatApp = angular.module('phonecatApp', []);



phonecatApp.controller('PhoneListCtrl', ['$scope', '$http', function($scope, $http) {
  $http.get('json/map_provinces.json').success(function(data) {
    $scope.phones = data;
    $scope.query="120000";
    $scope.num=0;
    $scope.num1=0;
  });
        
    $scope.getcity=function(){
        $http.get('json/map_city.json').success(function(data) {
        $scope.num=1;
        $scope.num1=0;
        $scope.city = data;
        $scope.mycity="no";
      });
    };
    $scope.getareas=function(){
        $http.get('json/map_areas.json').success(function(data) {
        $scope.num1=1;
        $scope.areas = data;
        $scope.myareas="no";
      });
    };
  //$scope.orderProp = 'age';
}]);

In 360 browser

In firefox browser

伊謝爾倫
伊謝爾倫

小伙看你根骨奇佳,潛力無限,來學PHP伐。

reply all(3)
我想大聲告訴你

Use Ng-change in select

我想大聲告訴你

Is it a problem with IE version? Only Angular1.2-supports IE8.

Peter_Zhu

The context is unclear, such as the version of ng, whether the 360 ??is currently in speed mode or compatibility mode, whether there are any errors in the console, etc.
What the first floor said is correct, it should be in the <select>中使用ng-changecommand

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template