随笔分类 - JavaScript
摘要:GitHub地址:https://github.com/rockboom/SheetJS-docs-zh-CN/blob/master/README.md 引入: <script src="../SiteAssets/Js/xlsx.core.min.js" type="text/javascrip
阅读全文
摘要:/** *@description Ajax请求二次封装 带loading窗口 */function Ajax(options) { var wait_ico; if(plus != undefined && plus != null) { wait_ico = plus.nativeUI.show
阅读全文
摘要://提交服务器请求 //返回json格式 //1,提交给类 options.type 方法 options.method 处理 //2,并返回 AjaxResult(这也是一个类)类型的的序列化好的字符串 LG.ajax = function(options) { var p = options |
阅读全文
摘要:验证数字,大写字母,小写字母,特殊字符四选三组成的密码强度,且长度在8到30个数之间 表达式: ^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(
阅读全文
摘要:20个使用WebGL和Three.js实现的网页场景 https://www.open-open.com/news/view/9d8136 20个使用WebGL和Three.js实现的网页场景 http://www.chinaz.com/design/2013/1008/320641.shtml 2
阅读全文
摘要:$(dom).addEvent("ft", function() { alert("走起"); }); // 创建 var evt = document.createEvent("HTMLEvents"); // 初始化 evt.initEvent("ft", false, false); // 触
阅读全文
摘要:jquery.uploadify.min.js /* Uploadify v3.2.1 Copyright (c) 2012 Reactive Apps, Ronnie Garcia Released under the MIT License <http://www.opensource.org/
阅读全文
摘要:html代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>WebSocket DEMO</title> <m
阅读全文
摘要:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no
阅读全文
摘要:Swiper(Swiper master)是目前应用较广泛的移动端网页触摸内容滑动js插件。 https://www.swiper.com.cn/
阅读全文
摘要:一、建立网页 <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <script language="javascript" type="text/javascript"> <!-- 提供给C#程序调用的方法 -->
阅读全文
摘要:https://www.html.cn/archives/8748#table-of-contents https://www.haorooms.com/post/js_regexp
阅读全文
摘要:原table2excel代码 /* * 采用jquery模板插件——jQuery Boilerplate * * Made by QuJun * 2017/01/10 */ //table2excel.js ; (function ($, window, document, undefined) {
阅读全文
摘要:长轮询:客户端向服务器发送Ajax请求,服务器接到请求后hold住连接,直到有新消息才返回响应信息并关闭连接,客户端处理完响应信息后再向服务器发送新的请求。 优点:在无消息的情况下不会频繁的请求。 缺点:服务器hold连接会消耗资源。 if not exists(select 1 from sys.
阅读全文
摘要:1.这种方式只可以对显示的textbox和textarea使用,对于display:none和visibility hidden 以及其他标签无效 var message = document.getElementById("compcode240"); message.select(); // 选
阅读全文
摘要:window.clipboardData的作用是在页面上将需要的东西复制到剪贴板上,提供了对于预定义的剪贴板格式的访问,以便在编辑操作中使用。 三个方法 (1)clearData(sDataFormat) 删除剪贴板中指定格式的数据。sDataFormat:"text","url" (2)getDa
阅读全文
摘要:<ul> <li>John</li> <li>Karl</li> <li>Brandon</li> </ul> 获取第一个元素: $("ul li:first-child") <div id="getfirst"> <ul> <li>John</li> <li>Karl</li> <li>Brand
阅读全文
摘要:一、实现点击按钮,复制文本框中的的内容 <script type="text/javascript"> function copyUrl2() { var Url2=document.getElementById("biao1"); Url2.select(); // 选择对象 document.e
阅读全文
摘要:js中类定义函数时用prototype与不用的区别 原创 2017年06月05日 12:25:41 标签: 函数 / prototype / class 首先来看一个实例: function ListCommon2(first,second,third) { this.First=function
阅读全文

浙公网安备 33010602011771号