1

我正在尝试在我的 Angular js 代码中使用 select2 4.0.0。但它根本不影响代码。

indexApp.controller('myAllyController', function($rootScope, $scope, $route, $localStorage,$routeParams, $location, $http, $window, $filter,$modal,GPlusAuthService1,$q) {
	
	/*Select 2 tool*/
	$(document).ready(function(){
		$('select').select2();
	});
<select>
   <option ng-repeat="aTN in allyTypeName" value="{{aTN.alliesTypeID}}">{{aTN.alliesTypeName}}></option>
</select>

我正在使用上面的代码..我在我的主文件中包含了 css 和 js 文件,但它仍然无法正常工作..

4

0 回答 0