js
木子李0531
金无足赤,人无完人
展开
-
js根据日期生成批次号
js根据日期生成批次号原创 2022-11-06 18:16:00 · 332 阅读 · 0 评论 -
图片点击放大 再次点击还原
html<script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.9.1.min.js"></script><empty name="list"> <tr> <td style="text-align: center;" colspan="5"> <span style="color:red;font-size:2原创 2021-11-02 17:02:14 · 112 阅读 · 0 评论 -
正则表达式验证密码是数字字母特殊符号且六位以上组合、手机号、邮箱
js 正则表达式验证密码(6位以上数字字母特殊符号组合)function checkPsw(password){ //密码必须是数字、字母、特殊符号混合,且大于6位 var patrn = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[#@!~%^&*.])[a-zA-Z\d#@!~%^&*.]{6,}$/; if (!patrn.exe...原创 2020-04-24 13:57:53 · 3088 阅读 · 0 评论 -
关于js 指定字符分割字符串
//分割经纬度var js_str = '117.13131701435834,36.68554985754384';var js_arr = js_str .split(",");var dbx = js_arr [0];//117.13131701435834var dby = js_arr [1];//36.68554985754384原创 2018-05-25 17:35:23 · 5340 阅读 · 0 评论 -
tp5,ajax jquery 实现分页
1,html,css 部分,自行引入jquery <style> .table-bg{border-collapse:collapse !important;} .table-bg th{border-bottom-width: 0px !important;} #pageBar { float: left; text-align: ri...原创 2018-08-02 17:22:35 · 2413 阅读 · 0 评论 -
header is present on the requested resource. Origin 'null' is therefore not allowed access.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.解决方案1,如果请求的url是PHP页面,则需要在PHP页面中添加代码:header("Access-Control-Allow-Origin:...原创 2018-12-27 16:07:56 · 6092 阅读 · 0 评论 -
百度地图api轨迹回放
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>function</title> <style> html{height:100%} body{height:100%;margin:0px;padding:0p...转载 2019-09-10 16:44:07 · 322 阅读 · 0 评论