用 JS 批量导出苹果开发者后台的 devices

2017-06-14  本文已影响32人  KeepYounger

JS 代码如下

function deviceIDs() {
        var lis = document.getElementsByClassName('ui-row-ltr');
        var content = "";
        for (var i=0;i<lis.length;i++){
            var temp = lis[i];
            var deviceID = temp.getElementsByClassName('ui-ellipsis')[2].innerText;
            var name = "name"+i;
            content=content+deviceID+"  "+name+"\n";
        }
        return content;
   }
上一篇下一篇

猜你喜欢

热点阅读