zllz
zllz
  • 发布:2019-04-01 10:21
  • 更新:2019-04-01 10:21
  • 阅读:772

mui在页面传值以后获取值的时候报Unexpected token var

分类:MUI
mui
<!doctype html>  
<html>  

    <head>  
        <meta charset="UTF-8">  
        <title></title>  
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />  
        <link href="../../../css/mui.min.css" rel="stylesheet" />  
        <!--<script src="html5plus://ready"></script>-->  
    </head>  

        <script src="../../../js/mui.min.js"></script>  
        <script type="text/javascript" src="../../../js/jquery-3.3.1.min.js" ></script>  
        <script type="text/javascript">  
            mui.init();  
        </script>  
        <script>  
            function plusReady(  
                var a=plus.storage.getItem("targetId");  
                document.getElementById("ul_div_id2").innerHTML=a;  
            )  
            if(window.plus){  
                plusReady();  
            }else{  
                document.addEventListener('plusready', plusReady, false);  
            }  
        </script>  
    <body>  
        <div id="ul_div_id2"></div>  
    </body>  

</html>
2019-04-01 10:21 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复