本分支用于同步代码
This commit is contained in:
@@ -116,7 +116,7 @@ $(document).ready(function(){
|
||||
var afterSendTime = new Date().getTime();
|
||||
//console.log(result);
|
||||
var requestObj = result.data;
|
||||
setStorage(cacheKeys.pRequestObjStart + docUrl, storeRequestParam);
|
||||
// open-doc:去掉存储
|
||||
$("#httpRequestStatus").text(requestObj.status);
|
||||
$("#httpRequestTime").text((afterSendTime - beforeSendTime) + "ms");
|
||||
try {
|
||||
@@ -224,23 +224,13 @@ $(document).ready(function(){
|
||||
* 提交模拟返回值
|
||||
*/
|
||||
$("#simulationResultSubmit").click(function(){
|
||||
var value = $("#simulationResultText").val();
|
||||
value = getNotEmptyStr(value, "");
|
||||
var docUrl = $("#simulationResultUrl").text();
|
||||
setStorage(cacheKeys.pSimulationResponse + docUrl, value, function() {
|
||||
Toast.warn("提交成功!");
|
||||
}, function(msg) {
|
||||
Toast.error("提交失败!" + msg);
|
||||
});
|
||||
// open-doc:去掉存储
|
||||
});
|
||||
/**
|
||||
* 获取模拟返回值
|
||||
*/
|
||||
$("#simulationResultGet").click(function(){
|
||||
var docUrl = $("#simulationResultUrl").text();
|
||||
getStorage(cacheKeys.pSimulationResponse + docUrl, function(data){
|
||||
$("#simulationResultText").val(data);
|
||||
});
|
||||
// open-doc:去掉获取存储
|
||||
});
|
||||
});
|
||||
|
||||
@@ -272,10 +262,8 @@ function createOnlineDebugParamTable() {
|
||||
* @returns
|
||||
*/
|
||||
function createOnlineDebugRequestParam(requestParamObj, url) {
|
||||
// 查询之前的调试参数信息
|
||||
getStorage(cacheKeys.pRequestObjStart + url, function(data) {
|
||||
createOnlineDebugRequestParamFun(data, requestParamObj, url);
|
||||
});
|
||||
// open-doc:去掉获取存储
|
||||
createOnlineDebugRequestParamFun({}, requestParamObj, url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user