![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
半生瓜H
这个作者很懒,什么都没留下…
展开
-
js禁止f12与禁止右键功能
//禁用右键 document.oncontextmenu = function () { return false; }; //禁用开发者工具F12 document.onkeydown = function () { if (window.event && window.event.keyCode == 123) { event.keyCode = 0;转载 2018-02-26 17:12:15 · 999 阅读 · 0 评论 -
AJAX中的常用参数以及含义
1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout: 要求为Number类型的参数,设置请求超时时间(毫秒)。此设置将覆盖$.ajaxSetu转载 2018-03-19 10:41:28 · 713 阅读 · 1 评论