表单提交时,执行 editor.sync(); editor是kindeditor 对象$(function(){ KindEditor.ready(function(K) { editor = K.create('#editor'); }); $('#my
html<input type="text" id="baseUrl" class="bp_input" /> <input type="button" class="
生成指定位数的纯数字字符串//生成n位数字字符串 function randomNum(n){ var res = ""; for(var i=0;i<n;i++){ res&nb
安装 prism.js https://www.51zuso.com/admin/p/1397.html在内容显示页面加上这个代码<script> var $codepre = $("pre[class]&
官网:https://prismjs.com/download.html选择需要的主题很语言我所选的配置https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+abap+abnf+a
第一种:利用 json.parse 和 json.stringifythis.list= json.parse( json.stringify(this.list2) )第二种:es6 的解析语法this.list= { ...this.list2}this.arr= [...this.arr2]
js判断手机端跳转 到 域名/m<script type="text/javascript"> if(window.location.toString().indexOf('pref=padinde
根据数组有length属性而json对象没有,从而来判断 if(typeof file.length == 'number' ){ console.log('数组'); } else{ console.log('对象'); }
js在发送数组时,发现php后台接收到的是字符串报错,所以,在发送时需要数组转到json字符串,后台接到到json字符串在转为数组例:js 数组arr = [1,2,3,4];转 json 字符串JSON.stringify(arr)php 接收arr =&n
jQuery.noConflict(true) 加 true 比较稳<!doctype html> <html> <head> <meta charset="UTF
表单字段验证常用正则表达式1、姓名/^[\u4e00-\u9fa5]{2,4}$/ //2-4个中文字符正则2、手机号码/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/3、座机号码/^(0\d{2,3})-?(\d{7,8})
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>
<script src="http://api.map.baidu.com/api?v=2.0&ak=aYF3Un151pFUOcF9K98daGzk4cqaIfBE"type="text/javascript"></script><
<script> (function (win,doc){ if (!win.addEventListener) alert('b2'); var html=document.documentElement; function setFont() {
// 没有返回值 alert('你好');// 返回 false/true let res = confirm('确定删除?'); console.log(res);// 返回用户输入的值或null, 第二个值为指定的默认值(可选) var
import Cookies from 'js-cookie';setHis() { let his = Cookies.get('his') if (his) { his = JSON.par
直接给一个新的数组里面,利用es6的延展运算符arr = [...new Set(arr)] //去重arr = arr.filter(function (s) {return s && s.trim()}) //去除空值
<div class="logos-swiper"> <div class="swiper-wrapper"> <div class="swiper-slid
之前关闭了,好像最近又开始折腾了?,一服务器值几毛钱,关闭干啥,真是服了这个是放出来的最新地址https://layui.gitee.io/v2
组件https://hooray.github.io/vue-sku-form/guide/ 另外一个比较简单 的<!DOCTYPE html> <html> <head> <meta char
admin
seo
ljd
51zuso_70
haotao99
51zuso_77