WebView.IsJavaScriptAlertEnabled 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个布尔值,指示 Web 视图是否允许 JavaScript 警报。
public static bool IsJavaScriptAlertEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows,Xamarin.Forms.WebView> config);
static member IsJavaScriptAlertEnabled : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows, Xamarin.Forms.WebView> -> bool
参数
要返回其 JavaScript 警报权限的 Web 视图元素的平台配置。
返回
System.Boolean
一个布尔值,指示 Web 视图是否允许 JavaScript 警报。