html中行内调用function的时候,是通过window调用的function,所以打印this等于打印window,所以在使用行内注册事件时务必传入参数this ...
分类:
Web程序 时间:
2017-11-21 16:55:39
阅读次数:
140
一,ajax使用配置 1)使用ajax之前先引入jquery <script type="text/javascript" src="js/jquery-1.8.2.js"></script> 二,ajax常用格式 var u = $("#uUsername").val(); 1) $.ajax({ ...
分类:
Web程序 时间:
2017-11-21 15:50:39
阅读次数:
199
def regist(): if request.method == 'GET': return render_template('regist.html') else: username = request.form.get(‘username’)#获取form中的数据 判断用户名是否存在:存在报 ...
分类:
其他好文 时间:
2017-11-21 14:49:13
阅读次数:
153
string url=""; string param=""; string result = string.Empty; HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url); Encoding encoding = Enc ...
分类:
Web程序 时间:
2017-11-21 14:48:14
阅读次数:
133
1、web.xml 设置WEB应用程序描述符web.xml里的<session-timeout>元素。这个值以分钟为单位,并覆盖weblogic.xml中的TimeoutSecs属性 <session-config> <session-timeout>60</session-timeout> </s ...
分类:
Web程序 时间:
2017-11-21 14:22:36
阅读次数:
190
Selenium 是什么? 一句话,自动化测试工具。它支持各种浏览器,包括 Chrome,Safari,Firefox 等主流界面式浏览器。 如果你在这些浏览器里面安装一个 Selenium 的插件,那么便可以方便地实现Web界面的测试。 换句话说叫 Selenium 支持这些浏览器驱动。 我们在P ...
分类:
其他好文 时间:
2017-11-20 23:12:51
阅读次数:
195
代码清单4-1 使用getaddrinfo()创建并连接套接字 getaddrinfo()函数用来将用户指定的主机名和端口号转换为可供套接字方法使用的地址所需要的重要方法。例如,使用getaddrinfo()获取baidu.com提供HTTP服务的方法: 返回结果 从返回结果可以看出,提供3中方法连 ...
分类:
编程语言 时间:
2017-11-20 20:24:21
阅读次数:
190
一、绘制基本的文字: 注意:我们也可以用渐变色和图片填充文字的背景 二:font属性 ...
分类:
其他好文 时间:
2017-11-20 19:12:33
阅读次数:
132
注册钩子点首先要包含响应的头文件,因为这应该已经属于对kernel的编程了。 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/init.h> 其次,要定义钩子函数 1 static unsigned ...
分类:
Web程序 时间:
2017-11-20 16:40:16
阅读次数:
176
Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have ...
分类:
其他好文 时间:
2017-11-20 16:39:52
阅读次数:
158