第五次作业

<html>
    <head>
        <meta charset="UTF-8">
        <title>
            11
        </title>
        <body>
            <script src="./11.js">
var m=prompt('请输入查询种类');
switch(m){
    case '苹果':
        document.write('11.9/斤');
        break
    case '香蕉':
        document.write('11/斤');
        break
    case '橘子':
        document.write('15/斤');
        break
    case '菠萝':
        document.write('12/斤');
        break
    case '草莓':
        document.write('25/斤');
        break
    default:
        document.write('暂无品种');
}                      
</script>
        </body>
    </head>
</html>

https://www.cnblogs.com/96aa/p/17281031.html

 

posted @ 2023-03-28 09:50  张京普  阅读(11)  评论(0)    收藏  举报