大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> CGI专区 -> 使用脚本下载网页

使用脚本下载网页

时间: 2021-07-31 作者:daque

// the url to download  var url = "http://www.aboutnt.com/default.htm"  // create instance of inet control  inet = new activexobject("inetctls.inet");  // set the timeout property  inet.requesttimeout = 20;  // set the url property of the control  inet.url = url;  // actually download the file  var s = inet.openurl();  // show the raw html to the user  wscript.echo( s );  // bonus - find the title of the page  // regular expression to find the string stored between  // the title tags.  rtitle = /<title>(.*)<\/title>/i;  // execute the regular expression on the raw html  var title = rtitle.exec( s );  // display the result 

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.