url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求...
分类:
Web程序 时间:
2014-06-27 21:41:47
阅读次数:
299
一查询数值型数据:SELECT*FROMtb_nameWHEREsum>100;查询谓词:>,=,,!=,!>,!,=''orderbyaddtimedesc注:相当于PHP中的!=六利用变量查询数值型数据SELECT*FROMtb_nameWHEREid='$_POST[text]'注:利用变量查...
分类:
数据库 时间:
2014-06-27 00:04:22
阅读次数:
285
This post introduces how to limit the access scope of the field and method of the object.
分类:
编程语言 时间:
2014-06-26 23:10:37
阅读次数:
418
常有的方法,get请求用在tomcat的编码改为utf-8 即可post 过滤器就可以一、常识了解1.GBK包含GB2312,即如果通过GB2312编码后可以通过GBK解码,反之可能不成立;2.java.nio.charset.Charset.defaultCharset()获得平台默认字符编码;3...
分类:
其他好文 时间:
2014-06-26 23:02:53
阅读次数:
346
NSData *bodyData = [[bodyString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]dataUsingEncoding:NSUTF8StringEncoding];//把bodyString转换...
分类:
其他好文 时间:
2014-06-25 14:29:44
阅读次数:
148
First, update the attribute input type to multiselect:UPDATE eav_attribute SETentity_type_id = '4',attribute_model = NULL,backend_model = 'eav/entity_...
分类:
其他好文 时间:
2014-06-25 14:13:24
阅读次数:
285
【UIButton】 Button is a simple component designed to receive hover, pressed and click events, and change the color of a remote sprite. You can also op....
分类:
其他好文 时间:
2014-06-25 13:30:43
阅读次数:
276
1.QueryStringrequest.QueryString["ParaName"] //传递的“ParaName”值2.Form-Post控件传值3.Cookies传递实现单值Cookie的设置1).httpCookie ck_animal=new HttpCookie("animal");2...
分类:
其他好文 时间:
2014-06-25 11:27:11
阅读次数:
255
<body
<formaction=""method="post"
name="form1">
<inputtype="text"id="id"/>
</form>
</body>
<script>functionmyfocus(){
document.getElementById(‘id‘).focus();}</script>
分类:
Web程序 时间:
2014-06-25 10:11:17
阅读次数:
181
1.姓名验证
ereg("[a-zA-Z_]",$_POST['username'])
2.日期验证
ereg("[0-9]{4}-[0-9]{2}-[0-9]{2}",$_POST['birthday'])
3.E-mail地址验证
ereg("^[a-zA-Z0-9_.]+@([a-zA-Z0-9_]+.)+[a-zA-Z]{2,3}$",$_POST['email'])...
分类:
其他好文 时间:
2014-06-25 07:58:31
阅读次数:
262