- 昵称:51助手
- 博龄:4年10个月5天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
微信h5页面关闭
摘要:3秒后关闭当前页面function weixinClosePage() { if (typeof WeixinJSBridge == "undefined") { if (document.addEventLi
kindeditor 表单提交数据未改变
摘要:表单提交时,执行 editor.sync(); editor是kindeditor 对象$(function(){ KindEditor.ready(function(K) { editor = K.create('#editor'); }); $('#my
js判断元素距电脑屏幕底部
摘要:var st = $(document).scrollTop(); //滚动条高度 var bt = $('#zlzs').offset().top; //元素距页面高度 var wh = window.screen.height
jquery向指定光标位置插入内容
摘要:html<input type="text" id="baseUrl" class="bp_input" /> <input type="button" class="
jquery鼠标经过fadeInUp延迟动画
摘要:引用animate.min.css<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">css可以选隐元素.demo{  
js随机生成数字、字母
摘要:生成指定位数的纯数字字符串//生成n位数字字符串 function randomNum(n){ var res = ""; for(var i=0;i<n;i++){ res&nb
百度编辑器支持prism.js 代码高亮
摘要:安装 prism.js https://www.51zuso.com/admin/p/1397.html在内容显示页面加上这个代码<script> var $codepre = $("pre[class]&
prism.js 代码高亮
摘要:官网:https://prismjs.com/download.html选择需要的主题很语言我所选的配置https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+abap+abnf+a
js post 发送数组后台接收
摘要:js在发送数组时,发现php后台接收到的是字符串报错,所以,在发送时需要数组转到json字符串,后台接到到json字符串在转为数组例:js 数组arr = [1,2,3,4];转 json 字符串JSON.stringify(arr)php 接收arr =&n
jQuery.noConflict(true) 解决jquery版本冲突
摘要:jQuery.noConflict(true) 加 true 比较稳<!doctype html> <html> <head> <meta charset="UTF