随笔分类 - 030、java Script
摘要:解决方案(伪代码):(http://www.cnblogs.com/see7di/archive/2011/09/08/2239653.html)jQuery( “*”, obj).add([obj]).each(function(){jQuery.event.remove(this);jQuery
阅读全文
摘要:String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, "");}
阅读全文
摘要:function CheckDateFormat(_value) { //var a = /^(\d{4})-(\d{2})-(\d{2})$/; // var a = /^(\d{4})(-|\/)(\d{2})(-|\/)(\d{2})$/; var a = /^(\d{4})(\/)(\d{2})(\/)(\d{2})$/; if (!a.test(_value)) { // alert("日期格式不正确!") alert("...
阅读全文
摘要:SCRIPT LANGUAGE="JavaScript"> <!-- //出处:网上搜集 // Trim() , Ltrim() , RTrim() String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim = function() { return this.replace(/(^\s*)/g, ""); } String.prototype.RTrim = functi
阅读全文
摘要:<!DOCTYPE HTML><html><body>Makes XHR request every 50ms. Watch the memory. Fixes XHR leak in older IEs.<script>onload = function() { setInterval(function(){ var xhr = new XMLHttpRequest() xhr.open('GET', 'jquery.js', true) xhr.onreadystatechange = function() {
阅读全文
摘要:javascript:parent.window.location.href =“地址" javascript:parent.location.href =“地址" javascript:top.location.href =“地址"
阅读全文
摘要: Page.RegisterClientScriptBlock("clientScript", “”);
阅读全文
摘要:object.setAttribute(sName, vValue [, iFlags])参数: sName 必填项. String类型,属性名 vValue 必填项. 为属性指定的变量,可以为string, number, 或者 Boolean类型 iFlags 选填. 下面指定的两种 Integer 类型的标志 0 覆盖同名属性. 1 默认值. 为属性添加指定的值.实力<htm...
阅读全文
摘要:onmouseover="this.style.cursor='hand'
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Untitled Page</title> </head> <body> <input type="text" onchang...
阅读全文
摘要:1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="return false;" oncut="return false;" 防止复制 5. IE地址栏前换成自己的图标 6. 可以在收藏夹中显...
阅读全文
浙公网安备 33010602011771号