在载人页面后,浏览器输出流自动关闭;在此之后,任何一个对当前页面进行操作的document.write()方法将打开—个新的输出流。它将清除当前页面内容(包括源文档的任何变量或值).document.write的方式,对所有浏览器而言都是阻塞的
即同步的我们可以通过document.write的方式...
分类:
编程语言 时间:
2014-05-12 12:00:23
阅读次数:
336
protected void Page_Load(object sender, EventArgs
e) { int value = 0;//初始值 Test(ref value); Response.Write(val...
分类:
其他好文 时间:
2014-05-12 10:36:16
阅读次数:
277
无论是从页签处关闭浏览器,还是关闭整个浏览器窗口,无论是
ie11,火狐,谷歌,苹果,还是ie6,都能兼容的浏览器关闭事件监听在网上搜索了一天,虽然网上也有之类的代码,但是太繁琐,有时候还不可用。我也是在原有基础上修改的。经过了上述的浏览器测试,如果有不兼容的,欢迎提出意见一起学习。下面是write...
分类:
Web程序 时间:
2014-05-10 23:12:47
阅读次数:
394
1 #!/usr/bin/python 2 #coding:utf8 3 import re 4
import urllib 5 6 def gethtml(url): 7 page=urllib.urlopen(url) 8
html=page.read() 9 ret...
分类:
编程语言 时间:
2014-05-10 18:39:47
阅读次数:
399
远程访问500,404:错误信息,看得见;100,300,200:成功,看不见。ZMLHttpQequest对象属性:readyState对象状态(integer)0=未初始化
1=读取中 2=已读取 3=交互中 4=完成
分类:
其他好文 时间:
2014-05-10 06:45:03
阅读次数:
243
1.
文本文件的读写主要通过open()所构建的文件对象来实现。我们打开一个文件,并使用一个对象来表示该文件 , f = open(d,r) 其中d是文件名,r是模式
"r" 文件只读,使用 f.write()会报错 "w" 用于写入,每次使用f.write()都会把上一次给覆盖掉 "r+" ...
分类:
编程语言 时间:
2014-05-10 05:25:47
阅读次数:
305
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation....
分类:
其他好文 时间:
2014-05-10 04:20:35
阅读次数:
316
#键盘键入两个整数,并计算它们之和#!/bin/bash##echo-n"InputtwoIntergers:"read-t5-p"InputtwoIntergers[100and200]:"AB[-z$A]&&A=100[-z$B]&&B=200echo"$Aplus$Bis:$[$A+$B]"#归档文件的脚本#!/bin/bash#read-p"Threefiles:"FILE1FILE2FILE3read-p"Destinat..
分类:
系统相关 时间:
2014-05-10 04:08:25
阅读次数:
475
在ASP.NET使用javascript的一点小技巧
我们在进行ASP.NET开发时,经常会用到一些javascript脚本,比如:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write( "alert('OK');") ;
}
经常是重复的书写这些脚本,如果我们能做成一个相...
分类:
编程语言 时间:
2014-05-09 21:12:11
阅读次数:
268
1.document.write(""); 输出语句 2.JS中的注释为//
3.传统的HTML文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,documen...
分类:
Web程序 时间:
2014-05-09 19:40:08
阅读次数:
470