js中获得网页源代码
- ??//alert(pos);? ??
- ??var???fileName=url.substring(pos+1);???//从url中获得文件名?? ??
- ??return???fileName;?? ??
- ??}?? ??
- ??? ??
- ??function???onDownloadDone(fileName)?? ??
- ??{?? ??
- ??alert(fileName);???? ??
- ??}???? ??
- ??</script>?? ??
- ??<input???type="button"???id="behaviorID"???style="behavior:url(#default#download)"??
- ??
- ??
- 主要都是用到了behavior:url??