
Javascript
文章平均质量分 81
WDYDXF
这个作者很懒,什么都没留下…
展开
-
ocupload jquery 的应用
$(function () { $(".uploadfile").upload({ action: 'CourseXMLFileUploadHander.ashx', name: 'xml', params: { 'type': 'uplo原创 2011-12-22 09:22:54 · 5266 阅读 · 0 评论 -
uploadify ie9 empty() 缺少对象
把SWFUpload.prototype.cleanUp 方法修改为:SWFUpload.prototype.cleanUp = function (f) { try { if (this.movieElement && typeof (f.CallFunction) === "unknown") { this.debug("Removi原创 2013-05-02 12:46:54 · 3212 阅读 · 1 评论 -
javascript的继承
//对鼠标坐标点,进行封装的类 function PointXY(x, y) { this.PointX = x; this.PointY = y; }; //重载一下pointXY的类构造函数 function PointXYOverLoad(client) {原创 2013-08-05 18:28:06 · 827 阅读 · 0 评论 -
w3cshool 2013年最新离线手册 完整版
下载地址为:http://download.youkuaiyun.com/detail/wdydxf/6343971转载 2013-09-30 19:01:08 · 2401 阅读 · 0 评论 -
Backbone.js 0.9.2 中文解释
// Backbone.js 0.9.2// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.// Backbone may be freely distributed under the MIT license.// For all details and documentation:// http://backbonejs.org(转载 2014-01-02 20:55:24 · 2024 阅读 · 0 评论 -
Underscore.js 1.3.3 中文解释
// Underscore.js 1.3.3// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.// Underscore is freely distributable under the MIT license.// Portions of Underscore are inspired or borrowed from Prototy转载 2014-01-02 20:58:24 · 2432 阅读 · 0 评论 -
javascript 得到图片的宽高
var imgLoad = function (url, callback, context) { var img = new Image(); img.src = url; if (img.complete) { callback.call(context, img.width, img.h原创 2014-01-26 19:50:22 · 858 阅读 · 0 评论 -
javascript 字符串补零 padleft
function GenerateID(str) { var pad = "00000" return pad.substring(0, pad.length - str.length) + str }转载 2014-02-14 09:33:53 · 10879 阅读 · 0 评论 -
javascript 原理总结
1。 只有函数才会有原形属性。2。 函数的原形属性和和实际的原型对象没有关系。//(example fails in IE) var A = function(name) { this.name = name; } A.prototype == A.__proto__; //false A.__proto__ == Function.prototype原创 2014-03-13 17:33:52 · 918 阅读 · 0 评论 -
网页播放GlStudio代码
var tempIE = '<object width="100%" height="100%" id="Object1" classid="clsid:2BD70499-E075-4059-8384-B7AB7E8AAB1F"' + 'codebase="http://localhost:8081//HTMLTemplate/Animation/Animation原创 2014-04-30 15:30:26 · 1490 阅读 · 0 评论 -
js 过滤非法字符,只输入数字,文本框长度限制
动画编辑页面EZ602230847CN $(function () { $("body").on("keyup", ".pValidLength,.pValidPositiveFloat,.pValidForbidSpecialCharacter", function (eve) { var target原创 2014-07-24 19:46:56 · 4295 阅读 · 0 评论 -
网页播放Catia的代码(此文备份使用)
var tempChrome = '' + '' + ''; var tempIE = '' + '' + '';原创 2014-04-30 15:14:53 · 1924 阅读 · 0 评论 -
比较全面的js report汇总
http://www.highcharts.com/demo/3d-scatter-draggablehttp://visjs.org/examples/graph3d/playground/index.htmlhttp://bl.ocks.org/supereggbert/aff58196188816576af0https://github.com/mbostock/d3/wik原创 2016-07-20 09:51:47 · 4122 阅读 · 0 评论 -
JavaScript 语言基础知识点总结(思维导图)
温故而知新 ———— 最近温习了一遍Javascript 语言,故把一些基础、概念性的东西分享一下。(下面内容大都为条目、索引,是对知识点的概括,帮助梳理知识点,具体内容需要查阅资料) JavaScript 数组JavaScript 函数基础Javascript 运算符JavaScript 流程控制JavaScrip转载 2013-04-27 13:18:44 · 1227 阅读 · 0 评论 -
js 控制textbox只能输入数字
只能填写数字 $('.actionsortcontrol').on('keypress', '.txtdelay', function (event) { var keyCode = event.which; if (this.value.length >= 5) return false;原创 2013-04-27 11:20:46 · 1506 阅读 · 0 评论 -
checkbox 单选 备份
javascript: //可以不选 function singleCheck(chk) { $chk = $(chk); var tempChecked = $chk[0].checked; $chk.parent().parent().children(1, "input[type=check原创 2012-02-22 12:09:20 · 837 阅读 · 0 评论 -
js 控制textbox enter 回车 禁止提交功能(ie9,firefox,ie8,chrome测试通过)
js: //铵enter键,阻止提交订单 function doClick(event) { // if ($.trim($('#' + buttonId + '').val()) == '') { // shorError(); // return;原创 2012-02-29 14:03:30 · 3330 阅读 · 0 评论 -
asp.net 验证码
专门处理图片的ashx文件:using System;using System.Web;using System.IO;public class VerificationHandler : IHttpHandler, System.Web.SessionState.IRequiresSessionState{ public void ProcessRequest(Http转载 2012-02-29 14:09:00 · 849 阅读 · 0 评论 -
js 验证手机号,邮箱一类的东西,js定位html元素,浏览器滚到到html元素
邮箱:if (!(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($.trim($(this).val())))) { alert('不正确');}手机号: if (!(/^1[3|5|8][0-9]\d{4,8}$/.test($.trim($(this).val())))) { alert('不正确')}js原创 2012-02-29 14:17:29 · 2153 阅读 · 0 评论 -
[Extjs]gridPanel中加img
js: function change(val){if(val==' '){return '';}}gridpanel中:var cm= new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(),{header:' ',dataIndex:' ',renderer:change}]);原创 2012-03-07 11:43:07 · 1912 阅读 · 0 评论 -
Javascript 得到url指定参数的function
function GetUrlValue(key, url) { var startIndex = url.indexOf(key); if (startIndex != -1) { var keyValue = url.substring(startIndex); keyValue =原创 2012-05-10 10:41:31 · 922 阅读 · 0 评论 -
理解Javascript_01_理解内存分配
理解Javascript_01_理解内存分配 在正式开始之前,我想先说两句,理解javascript系列博文是通过带领大家分析javascript执行时的内存分配情况,来解释javascript原理,具体会涵盖javascript预加载,闭包原理,面象对象,执行模型,对象模型...,文章的视角很特别,也非常深入,希望大家能接受这种形式,并提供宝贵意见。 原始值和引用值转载 2012-11-26 11:27:12 · 571 阅读 · 0 评论 -
调试js,记录log
var console = window.open('', 'console', "width=600,height=300,resizable,scrollbars=yes"); console.document.open("text/plain"); console.原创 2013-03-05 14:03:43 · 1750 阅读 · 0 评论 -
uploadify 上传,传递参数到服务端
function initUploadImg() { $('#divImageUpload').uploadify({ overrideEvents: ['onUploadError'], method: 'post', formData: { 'uploadtype': 't原创 2013-03-20 15:31:05 · 5362 阅读 · 0 评论 -
解决uploadify 3.1 ie上传失效,没有弹出框
问题描述:firefox,chrome正常,ie在兼容模式下正常,但是在正常浏览模式下无法弹出上传文件的选择框解决办法:如果用的是jquery.uploadify-3.1.min.js的话,那这个js替换一下:http://download.youkuaiyun.com/detail/wdydxf/5162012原创 2013-03-20 14:51:50 · 2889 阅读 · 0 评论 -
RGB 转 16进制格式
var colorHex = function (value) { var color = value.replace(/[^\d,]/g, '').replace(/(\d+)/g, function (s, s1) { var v = parseInt(s1).toString(16); return v.length == 1转载 2013-03-28 09:29:45 · 1053 阅读 · 1 评论 -
jquery的hide一个元素,需要注意的问题(offset)
将一个元素执行hide()后,其offset()都会变为0,但是实际上通过attr('left')和attr('top')得到的值,才是正确的left和top原创 2013-04-22 21:03:33 · 1527 阅读 · 0 评论 -
jquery queue的使用例子
$(function () { // test(); }); function test() { try { var result = ''; var _array = new Array(); var arrayPara原创 2013-04-22 16:40:33 · 1101 阅读 · 0 评论 -
最新 获取 浏览器版本号和操作系统的js
https://stackoverflow.com/questions/5916900/how-can-you-detect-the-version-of-a-browser转载 2019-07-20 10:10:14 · 497 阅读 · 0 评论