1.window10用bat命令rar打包文件夹,bat打包文件夹成zip

@echo off
set "rar=C:\Program Files\WinRAR\WinRAR.exe"
"%rar%" a 1.zip .\h5
pause

2.bat拷贝目录,拷贝文件

Xcopy /e /c /y ".\dist\build\h5\*" "..\abcPack\"
Xcopy  /c /y ".\configRes.js" ".\dist\build\h5\config.js"


3.html获取参数的

var url = window.location.search;
var theRequest = new Object();
if (url.indexOf("?") != -1) {
    var str = url.substr(1);
    var strs = str.split("&");
    for (var i = 0; i < strs.length; i++) {
        theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
    }
}

4.

标签: bat

添加新评论