在Windows Phone中提示 [英] Prompt in Windows Phone

查看:111
本文介绍了在Windows Phone中提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JavaScript实现应用程序,我有一个问题命令提示。
在Android它的工作正常,但在Windows Phone 8它不工作。

I'm implementing an app using JavaScript and I have a problem with the command "Prompt". In Android it works fine but in Windows Phone 8 it doesn't work at all.

示例:

var person = prompt("Please enter your name");

if (person != null) {
    document.getElementById("demo").innerHTML =
    "Hello " + person + "! How are you today?";
}


推荐答案

c $ c>提示方法在IE7 +中出于安全原因。你必须自己滚动。

Internet Explorer blocks the prompt method in IE7+ for security reasons. You will have to roll your own instead.

这篇关于在Windows Phone中提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆