摘要: .val()works on input elements (or any element with a value attribute?) and.text()will not work on input elements..val()gets the value of the input ele... 阅读全文
posted @ 2015-10-14 16:47 Delena 阅读(107) 评论(0) 推荐(0) 编辑
摘要: jquery中的ajax方法参数总是记不住,这里记录一下。1.url:要求为String类型的参数,(默认为当前页地址)发送请求的地址。2.type:要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支... 阅读全文
posted @ 2015-10-14 15:53 Delena 阅读(89) 评论(0) 推荐(0) 编辑