假如现在有这样一个表单,是添加元素用的。 <form id='addForm' action='UserAdd.action' type='post'> <label for='uname'>用户名</label>:<input type='text' name='uname' id='uname' Read More
posted @ 2016-01-31 16:44 汪强胜 Views(324) Comments(0) Diggs(0) Edit
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。 timeout: 要求为Number类型的参数,设置 Read More
posted @ 2016-01-31 16:40 汪强胜 Views(248) Comments(0) Diggs(0) Edit
jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分 Read More
posted @ 2016-01-31 16:37 汪强胜 Views(176) Comments(0) Diggs(0) Edit