用于Angular JS选择列表和日期选择器的mobiscroll以前在Android 9上可以运行,但在Android 10上却不能运行
它们打开,但“取消”和“确定”按钮不起作用。在日期中无法选择日期 选择器。
在Chrome和Firefox中都会发生这种情况。
开发人员工具控制台中没有错误。有人看到过这个问题吗?
html页面:
<select id="username" ng-model="currentusername" mobiscroll-select
mobiscroll-options="{theme:'ios',lang:'sv'}" >
<option ng-value="user" ng-repeat="user in usernames">{{ user }} .
</option>
</select>
app.js:
angular.module('ourAppApp',[
'ngAnimate','ngCookies','ngResource','ngRoute','ngSanitize','ngTouch','mobiscroll-select'
])
.config(function ($routeProvider) {
$routeProvider
.when('/',{
templateUrl: 'views/main.html',controller: 'MainCtrl',controllerAs: 'main'
})
.when('/about',{
templateUrl: 'views/about.html',controller: 'AboutCtrl',controllerAs: 'about'
})
.otherwise({
redirectTo: '/'
});
});
用于html页面的控制器:
angular.module('ourAppApp')
.controller('AboutCtrl',function ($scope) {
this.usernames = [
'Big G','Psycho Z','Uncle P'
];
$scope.currentusername = 'Big G';
$scope.usernames = this.usernames;
});