添加调试功能

This commit is contained in:
guange 2016-03-26 15:56:36 +08:00
parent c27fbc7022
commit d5124e128e
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -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){

View File

@ -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',