PowerShell 2.0, Win 7 or more operating systems are available.
[System.reflection.assembly]::loadwithpartialname ("System.Web.Extensions")$path="D:\front\"$library="Element-ui"$json="[]"$json=$client. Downloadstring ("https://api.bootcdn.cn/libraries/"+$library+". JSON")$ser= new-Object System.Web.Script.Serialization.JavaScriptSerializer$obj=$ser. Deserializeobject ($json)## $info = Convertfrom-json-inputobject $jsonif($obj. Assets.length) { $array=$obj. assets[0].files$version=$obj. assets[0].version$client= new-Object System.Net.WebClientforeach($src inch $array){ $url="https://cdn.bootcss.com/"+$library+"/"+$version+"/"+$src $des= ($path+$library+"@"+$version+"/"+$src). Replace ("/","\") if((Test-path$des. Substring (0,$des. LastIndexOf (' \ ')))-eq $False) {New-item$des. Substring (0,$des. LastIndexOf (' \ '))-Type Directory}$client. DownloadFile ($url,$des) }}
PowerShell 2.0 Download BOOTCDN resources