gpt4 book ai didi

ionic-framework - 在 ios 中我无法选择下拉选项?

转载 作者:行者123 更新时间:2023-12-02 02:53:06 25 4
gpt4 key购买 nike

我的代码是在ionic1中完成的。
我的代码适用于 android,但对于 ios 我无法选择下拉列表中的任何选项,我已经阅读了如下解决方案:

"Ok" button not appearing in <select> tag on Ionic App

但这对我不起作用。我可以做什么?这是我的代码:

  <div class="form-group mt-4">
<label for="exampleFormControlSelect1">Departamento</label>
<select class="form-control select_custom select_custom_set" ng-model="selectDepartamento" ng-options="item as item.Nombre for item in aDepartamentos | orderBy:'Nombre' track by item.Codigo" ng-change="fn_updateMun(selectDepartamento)" name="selectDepartamento" required>
<option value="" style="display:none;">Seleccione departamento</option>
</select>
</div>

enter image description here

这是我的配置:
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS"
cordova-android-play-services-gradle-release 1.4.2 "cordova-android-play-
services-gradle-release"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 2.1.0 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.3.6 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova.plugins.diagnostic 4.0.8 "Diagnostic"

我目前的代码:
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar
//above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins &&
window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
});
})

最佳答案

看起来像新的 cordova-plugin-ionic-keyboard插件你需要这样做来显示键盘选项。

Keyboard.hideFormAccessoryBar(false);

检查 documentation对于这个插件。

关于ionic-framework - 在 ios 中我无法选择下拉选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51107402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com