第五次作业

第一次作业https://www.cnblogs.com/qiaowentao/p/17281047.html
<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>

 

posted @ 2023-04-02 19:13  乔文涛  阅读(10)  评论(0)    收藏  举报