添加调试功能
This commit is contained in:
parent
c27fbc7022
commit
d5124e128e
|
@ -15,9 +15,6 @@
|
|||
<body>
|
||||
<div id="container"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 模板1开始,可以使用script(type设置为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…
Reference in New Issue