请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
9
帖子
0
勋章
14
Y币

[其他] 新手视频里!

[复制链接]
发表于 2017-9-14 03:22:53
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <style>
        header{
            position: relative;
            width: 100%;
            height:50px;
            background-color: #f0f;
        }
        header h1 {
            position: relative;
            height: 50px;
            line-height: 50px;
            font-size: 20px;
            color: #fff;
            text-align: center;
        }
        header .right{
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100px;
            height: 50px;
            line-height: 50px;
            font-size:16px;
            color:#fff;
            text-align: center;
        }
    </style>
</head>
<body>
    <header>
        <h1>每日优鲜</h1>
        <div class="right" tapmode>个人中心</div> 这里是40行
    </header>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function fnOpenPersonCenterWin(){
        api.openWin({
            name: 'login',
            url: './login.html',
            pageParam: {
                name: 'value'
            }
        });
    };
</script>
</html>

点下个人中心出现的错误
是:Uncaught ReferenceError:
fnOpenPersonCenteWin is not definde at
main.html:40

5
帖子
0
勋章
3759
Y币
代码规范问题,你的页面fnOpenPersonCenteWin 不存在这个接口

也就是没有

function fnOpenPersonCenteWin (){}
9
帖子
0
勋章
14
Y币
谢谢,这个问题也解决了!
0
帖子
0
勋章
14
Y币
MiHuang 发表于 2017-9-19 22:22
谢谢,这个问题也解决了!

这个问题怎么解决的
20
帖子
0
勋章
6613
Y币
音艺来 发表于 2020-1-4 19:52
这个问题怎么解决的

页面代码 报错   没有找到这个方法
您需要登录后才可以回帖 登录

本版积分规则