请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

项目能够正常启动,但是将html+css+js写完后,表单显示不出来,页面不报404

https://img1.sycdn.imooc.com//szimg/60b9c46e09cb4d9c09660330.jpg

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>SUI Mobile Demo</title>
    <meta name="description" content="MSUI: Build mobile apps with simple HTML, CSS, and JS components.">
    <meta name="author" content="阿里巴巴国际UED前端">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">

    <!-- Google Web Fonts -->

    <link rel="stylesheet" type="text/css" href="resources/css/common/sm.min.css">
    <link rel="stylesheet" type="text/css" href="resources/css/common/sm-extend.min.css">

    <link rel="apple-touch-icon-precomposed" href="/assets/img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="page-group">
    <div id="page-label-input" class="page">
        <header class="bar bar-nav">
            <a class="button button-link button-nav pull-left back" href="/demos/form">
                <span class="icon icon-left"></span>
                返回
            </a>
            <h1 class="title">商店信息</h1>
        </header>
        <div class="content">
            <div class="list-block">
                <ul>
                <!-- 商铺名称输入 -->
                    <li>
                        <div class="item-content">
                            <div class="item-title label">商铺名称</div>
                            <div class="item-input">
                                <input type="text" id="shop-name" placeholder="商铺名称"/>
                            </div>
                        </div>
                    </li>
                <!-- 商铺分类选择 -->
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">商铺分类</div>
                                <div class="item-input">
                                    <select id="shop-category">
                                    </select>
                                </div>
                            </div>
                        </div>
                    </li>
                <!-- 区域分类  下拉列表 -->
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">所属区域</div>
                                <div class="item-input">
                                    <select id="area">
                                    </select>
                                </div>
                            </div>
                        </div>
                    </li>
                <!-- 详细地址 text -->
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">详细地址</div>
                                <div class="item-input">
                                    <input type="text" id="shop-addr" placeholder="详细地址">
                                </div>
                            </div>
                        </div>
                    </li>
                <!-- 联系电话   text -->
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">联系电话</div>
                                <div class="item-input">
                                    <input type="text" id="shop-phone" placeholder="联系电话">
                                </div>
                            </div>
                        </div>
                    </li>
                <!-- 缩略图上传控件 -->
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">缩略图</div>
                                <div class="item-input">
                                    <input type="file" id="shop-img">
                                </div>
                            </div>
                        </div>
                    </li>
                <!-- 店铺简介 textarea -->
                    <li class="align-top">
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">店铺简介</div>
                                <div class="item-input">
                                    <textarea id="shop-desc" placeholder="店铺简介"></textarea>
                                </div>
                            </div>
                        </div>
                    </li>
                <!-- 验证码 ka -->
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">验证码</div>
                                <input type="text" id="j_captcha" placeholder="验证码">
                                <div class="item-input">
                                    <img id="captcha_img" alt="点击更换" title="点击更换"
                                            onclick="changeVerifyCode(this)" src="../Kaptcha"/>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="content-block">
                <div class="row">
                    <div class="col-50">
                        <a href="#" class="button button-big button-fill button-danger">取消</a>
                    </div>
                    <div class="col-50">
                        <a href="#" class="button button-big button-fill button-success">提交</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
    <script type='text/javascript'
        src='resources/js/common/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript'
        src='resources/js/common/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript'
        src='resources/js/common/sm-extend.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='resources/js/common/common.js'
        charset='utf-8'></script>
    <script type='text/javascript'
        src='resources/js/shop/shopoperation.js' charset='utf-8'></script>
</body>
</html>


https://img1.sycdn.imooc.com//szimg/images/unknow-80.png

正在回答 回答被采纳积分+3

1回答

翔仔 2021-06-03 00:30:59

同学好,没太明白同学的意思,请问同学访问对应的url了么,如果访问了,是说空白页么,chrome里面是否报错?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕勒3376870 #1
    访问了,是空白页,但页面未提醒404,鼠标右键单击检查元素,在chrome里面看到未加载到资源等错误,但资源路径测试过是正确的。
    回复 有任何疑惑可以回复我~ 2021-06-03 00:44:23
  • 提问者 慕勒3376870 #2
    访问过对应的URL之后显示的是空白页,但是不报404错误,如果把引用外部资源的地址写错,表单就又出现了,但是写对的话Chrome里面会有错误提示说:
    Uncaught ReferenceError: jQuery is not defined  at sm.min.js:7
    Kaptcha:1 Failed to load resource: the server responded with a status of 404 ()
    sm-extend.min.js:9 Uncaught ReferenceError: jQuery is not defined     at sm-extend.min.js:9
    shopadmin/getshopinitinfo:1 Failed to load resource: the server responded with a status of 404 ()
    回复 有任何疑惑可以回复我~ 2021-06-03 08:28:36
  • 提问者 慕勒3376870 #3
    我访问对应的URL之后是空白页,但不报404错误,Chrome里面报错,报错有两种类型,一种是资源未加载,另一种是引用的公共js文件里面的错误,下面我把错误粘贴一下:
    Uncaught ReferenceError: jQuery is not defined
    1 Failed to load resource: the server responded with a status of 404 ()
    9 Uncaught ReferenceError: jQuery is not defined
    1 Failed to load resource: the server responded with a status of 404 ()
    回复 有任何疑惑可以回复我~ 2021-06-03 08:39:12
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信