
html
半湖思絮
IT
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
测试去空格
测试去空格 String.prototype.trim = function() { return this.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }; $(function(){ var a = ' ', b = ' b', c = 'c ', d = ' d ', e; console.log(a原创 2017-09-29 11:17:33 · 412 阅读 · 0 评论 -
js实现提交表单的遮罩效果,防止表单重复提交
下面代码设定了5秒后取消遮罩,使用时可以修改代码,手动取消 test .mask { position: absolute; top: 0px; filter: alpha(opacity=60); ba原创 2017-11-30 17:27:13 · 1712 阅读 · 0 评论 -
H5定位的实现
点击这个按钮,获得您的坐标: 试一下 var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, showError); }原创 2018-01-26 17:04:36 · 2446 阅读 · 0 评论 -
reCaptcha 的使用(只需申请密钥时fq)
这是reCaptcha在各个版本中的demohttps://recaptcha-demo.appspot.com/ 下面讲一下实现方式: V2版 1.申请使用的密钥 打开链接填写申请的相关信息:https://www.google.com/recaptcha/admin 提交信息后会给你两个密钥,其中一个是客户端使用,一个是服务器端使用 2.因为我填写的地址为wlyyb.xxx...原创 2019-03-04 17:40:37 · 9021 阅读 · 2 评论