上一页 1 2 3 4 5 6 ··· 19 下一页

2018年4月27日

摘要: 有时候更改了JS代码,但是浏览器内容不变,这样<script src="Scripts/myjs/Master.js?v"></script>引入JS就可以避免缓存 阅读全文
posted @ 2018-04-27 17:37 幽默是一种心情 阅读(458) 评论(0) 推荐(0) 编辑
 
摘要: $(function(){ $("#d-intro").find("img").each(function () { $(this).removeAttr("width").removeAttr("height").removeAttr("style"); //if ($(this).next("i 阅读全文
posted @ 2018-04-27 17:33 幽默是一种心情 阅读(1187) 评论(0) 推荐(0) 编辑
 

2018年4月26日

摘要: 一、SQL中的语法 1、drop table dbo.Sys_Test 2、truncate table dbo.Sys_Test 3、delete from dbo.Sys_Test where test='test' 二、drop,truncate,delete区别 1、drop (删除表):删 阅读全文
posted @ 2018-04-26 18:02 幽默是一种心情 阅读(4946) 评论(0) 推荐(0) 编辑
 
摘要: double a=50; double b=100; 没有小数部分Label1.Text = (a / (a+b)).ToString("0%") 两位小数Label2.Text = (a / (a+b)).ToString("P") ToString("0.00%"); ToString("P3" 阅读全文
posted @ 2018-04-26 17:52 幽默是一种心情 阅读(10452) 评论(0) 推荐(0) 编辑
 
摘要: window.location.href = location.href; 方法一: $(window).scrollTop(0); 方法二:$('html ,body').animate({ scrollTop: -10 }, 300); 阅读全文
posted @ 2018-04-26 17:44 幽默是一种心情 阅读(4370) 评论(0) 推荐(0) 编辑
 
摘要: html <a href="javascript:history.go(-1);location.reload()">返回上一页重载页面,本地刷新</a> <a href="#" onclick="self.location=document.referrer;">返回并刷新</a> Javascr 阅读全文
posted @ 2018-04-26 17:37 幽默是一种心情 阅读(313) 评论(0) 推荐(0) 编辑
 
摘要: 1.获取: $('#img')[0].src 2.设置:$('#img').attr("src", data.CodeUrl); 阅读全文
posted @ 2018-04-26 15:00 幽默是一种心情 阅读(7663) 评论(0) 推荐(0) 编辑
 
摘要: 1.填写银行卡号每隔4位数字加一个空格 Regex.Replace(dic["BankCardNo"].ToString(), @"(\d{4}(?!$))", "$1 ") 2.手机号用*代替: dic["AlipayAccount"].ToString().Substring(0,3)+ "** 阅读全文
posted @ 2018-04-26 14:49 幽默是一种心情 阅读(1146) 评论(0) 推荐(0) 编辑
 
摘要: 1. onchange事件与onpropertychange事件的区别: onchange事件在内容改变(两次内容有可能相等)且失去焦点时触发; onpropertychange事件是实时触发,每增加或删除一个字符就会触发,通过js改变也会触发该事件,但是该事件是IE专有。 2. oninput事件 阅读全文
posted @ 2018-04-26 14:47 幽默是一种心情 阅读(1381) 评论(0) 推荐(0) 编辑
 
摘要: var arr = list[i]["Tag"].Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); 阅读全文
posted @ 2018-04-26 14:34 幽默是一种心情 阅读(332) 评论(0) 推荐(0) 编辑
 
上一页 1 2 3 4 5 6 ··· 19 下一页