JS Interface

This commit is contained in:
ckcz123 2018-04-18 19:32:23 +08:00
parent a85b505a9c
commit 48a65ed1c1

View File

@ -324,6 +324,11 @@ utils.prototype.readFile = function (success, error, readType) {
////// 下载文件到本地 //////
utils.prototype.download = function (filename, content) {
if (core.isset(window.jsinterface)) {
window.jsinterface.download(filename, content);
return;
}
// Step 0: 不为http/https直接不支持
if (!core.platform.isOnline) {
alert("离线状态下不支持下载操作!");