mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH: all fix about OnlineModels
Change-Id: I9ae1a9fdb364c28f3c9de2827ca1bbb9a2f750fa
This commit is contained in:
@@ -244,6 +244,16 @@ function IsJson( strJson )
|
||||
return tJson;
|
||||
}
|
||||
|
||||
function DecodeJsonObject( pJson )
|
||||
{
|
||||
let tmpJson=JSON.stringify(pJson);
|
||||
tmpJson=decodeURIComponent(tmpJson);
|
||||
|
||||
pJson=JSON.parse(tmpJson);
|
||||
|
||||
return pJson;
|
||||
}
|
||||
|
||||
/*-----------------------Ajax Function--------------------*/
|
||||
/*对JQuery的Ajax函数的封装,只支持异步
|
||||
参数说明:
|
||||
@@ -344,6 +354,16 @@ function SendWXDebugInfo( strMsg )
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
}
|
||||
|
||||
function OpenUrlInLocalBrowser( strUrl )
|
||||
{
|
||||
var tSend={};
|
||||
tSend['sequence_id']=Math.round(new Date() / 1000);
|
||||
tSend['command']="common_openurl";
|
||||
tSend['url']=strUrl;
|
||||
|
||||
SendWXMessage( JSON.stringify(tSend) );
|
||||
}
|
||||
|
||||
|
||||
/*------CSS Link Control----*/
|
||||
function RemoveCssLink( LinkPath )
|
||||
|
||||
Reference in New Issue
Block a user