添加调试功能

chenlw_dev
guange 9 years ago
parent c27fbc7022
commit d5124e128e

@ -15,9 +15,6 @@
<body>
<div id="container"></div>
<!-- 模板1开始可以使用scripttype设置为text/html来存放模板片段并且用id标示 -->
<script id="t:result-list" type="text/html">

@ -6,7 +6,13 @@ $(function(){
if (r != null) return unescape(r[2]); return null; //返回参数值
}
var debug = false;
var g_openid = "";
if(debug){
g_openid = "填写要调试的openid即可";
}
window.getOpenId = function(cb){
if (g_openid.length>0){

@ -17,7 +17,6 @@ $(document).ready(function(){
var loadDataFromServer = function(id){
getOpenId(function(openid){
alert(openid);
$.ajax({
url: apiUrl + 'issues/' + id + "?openid="+openid,
dataType: 'json',

Loading…
Cancel
Save