js输入框和警告框弹不出来


求大神指点迷津http://img3.mukewang.com/5ae532da0001fd9203730297.jpg

慕虎9536711
浏览 1736回答 4
4回答

言曌博客liuyanzhao_com

分号打错了Js 中出现语法错误,会导致不执行。你中间那个分号打错了,换成英文的分号即可

慕的地8582982

BKZCSUPSOKAFVDZDNQLOQZIRUJFOKNCEARVDGQTHWSBKCMPRPYHJLOQVKNRBLADSZIJXAJSPENJFHBVBKLPFNSMCNPFVXUVEGJFKTPZIYUDMIEXNILBXOLAWSCLOEBSHJFOXWGWZOQAPFHQMVKTKAJXZBEVLHESIFNQZPFHKADAPGHXEZOYIEHDTTQFZBQFDMOWSBKNPMWMOSOKNDPYADTCSOQGJLYCIVNDRAAKXTBKTUJUPSAKGVYHVSHJTIWEBRLUQGIRGTWFQFWZOKTBGJRHEORGPYUACGPZUPFBDGQSUKTWFVQLHRGQGDGCMBXTVCLORACZOKGSAWNCXFVDADJMIZAPRHCYOAPRBXYVLNCYENWZVXBQFIRTCSOYBDZUKTUWYPYHPZVXAZBXZCRGWSOXXGPEHXMCDGVDFHDGVRHWYUOXACYPZPKTQUQFOKNWTIRBQTWMQNKGBEUPKNXHQZACEHNDGWYOSPLBRLMVLCSVLTCFLHENWNPTORTXAPRURILHBXVKMWFBKMBWSIXGRFVYHPFOBXGIYUPSOEGWYHXAKACDNPMIXLHEARMJFHDSIRUQTIRFSUQAWZHWLVEOJMORZPMORHRORTCMPTIRAYNQTPSUYGQZHQSBEBKFUXAQYNENWTPRAQLNQTQSJZHCYNTMKYVVIBURNYHUIRHEDNMJNNUHSWMFVFJFGWQRHIUUNRKTKBIYXAUTGGFNHUEVKUKPYMJMMSIYSDUUNRVWCTCCIQLCCVSTGVFOJLILLCTJCVCZJHRTQGKZHRYNQNQTPSVSHEACZKNWMBKAKNPLCLNYACEOKAPSIMPLUDAJTPFWZJTIYPYARODFVRHDRHXHDUKGBROMHJSVSCFORHMBLUYPSBXZH

__无悔

@言曌博客是对的

李行知

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <script> var age=prompt('请输入') if(age>18){ alert('>') }else{ alert('<') } </script> </body> </html>并没有出现这种问题,初步推测是因为浏览器原因,可能是你关闭了弹窗,自己百度下怎么开启吧
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript