|
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
- <title>frame1</title>
- <style>
- body,ul,li{margin:0;padding:0;list-style:none;}
- #aaa{width:100%;height:100%;}
- .a1{
- width:100%;
- height:auto;
- min-height:260px;
- background-color:#646464;
- }
- .a2{
- position:absolute;
- bottom:0;
- width:100%;
- }
- .b1{
- width:32%;
- height:100px;
- background-color:#7d7d7d;
- float:left;
- text-align:center;
- line-height:100px;
- margin-left:1%;
- margin-bottom:6px;
- cursor:pointer;
- }
- </style>
- </head>
- <body>
- <div id="aaa">
- <div class="a1">
- 工
- </div>
- <div class="a2">
- <div class="b1">第一行</div>
- <div class="b1" onclick="two()">第二行</div>
- <div class="b1">第一行</div>
- <div class="b1">第一行</div>
- <div class="b1">第一行</div>
- <div class="b1">第一行</div>
- </div>
- </div>
- <script type="text/javascript" src="js/api.js"></script>
- <script type="text/javascript">
- apiready = function(){
- var model=api.require('model');
- var query=api.require('query');
- model.config({
- appId:'A6983699353944',
- appKey:'0B8B8451-1734-362D-B74A-F9D68E457B43',
- host:'https://d.apicloud.com',
- });
- query.createQuery(function(ret,err){
- if(ret && ret.qid){
- var queryId=ret.qid;
- model.findAll({
- class:'kaoqin',
- qid:'queryId'
- },function(ret,err){
- //coding...
- function two(){
- alert("00")
-
- }
- });
- }
-
-
- });
- };
-
-
- </script>
- </body>
- </html>
复制代码 运行总是提示错误!位置是html代码里的onclick() |
|