摘要: withCredentials:默认情况下,跨源请求不提供凭据(cookie、HTTP认证及客户端SSL证明等)。通过将withCredentials属性设置为true,可以指定某个请求应该发送凭据。 默认值为false。 true:在跨域请求时,会携带用户凭证 false:在跨域请求时,不会携带用 阅读全文
posted @ 2020-06-15 17:34 Qionghuihe 阅读(4085) 评论(0) 推荐(1) 编辑
摘要: 请始终为按钮规定 type 属性。Internet Explorer 的默认类型是 "button",而其他浏览器中(包括 W3C 规范)的默认值是 "submit"。 有时候你点按钮会刷新页面,是因为HTML没有设置button的type属性,其默认为“submit”,提交页面了,要么点击时最好写 阅读全文
posted @ 2020-06-15 17:31 Qionghuihe 阅读(306) 评论(0) 推荐(0) 编辑