/* 移动 */ function isCMMobilevs(value) { // try { if (/^((((13[4|5|6|7|8|9])|(15[0|1|2|4|7|8|9])|(18[2|3|4|7|8])|(147)|(1(78|48|49)))\d{8})|((170(3|5|6))\d{7}))$/g.test(value)) { ...
jquery判断手机端或者pc端<script> $(function(){ if(navigator.userAgent.match(/mobile/i)) { alert('手机') }else { alert('pc') } }); </script>
AAAJS隐藏和显示div的方式有两种:方式1:隐藏后释放占用的页面空间通过设置display属性可以使div隐藏后释放占用的页面空间.style="display: none;" document.getElementById("demo").style.display="none";//隐藏 document.getElemen...
@font-face { font-family: YOUSHEhaoshenti; /*自定义的字体名称*/ src: url("./YOUSHEhaoshenti.ttf"); /*引入字体包*/ } body{ font-family: YOUSHEhaoshenti; }
<script> function randomWord(randomFlag, min, max) { var str = "", range = min, arr = ["0", "1", "2", "3", "4", "...
禁止 缓存<script type="text/javascript"> document.write("<script src='/echarts/echarts.min.js?"+Math.random()+"'><\/script>"); </script>
JQUERY生成二维码:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Jquery生成二维码</title> <script src="https:...
PHP获取网址301重定向跳转后的网址源码:function get301URL($url){ $header = get_headers($url,1); if (strpos($header[0],'301') || strpos($header[0],'302')) { if(is_array($header['Location'])) { ...
URL网址16进制加密源码:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>URL网址16进制加密工具</title><style>body{...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JS加解密</title><style>body{ margin:0; text-align:...