随笔分类 -  js

摘要:function pars(param, key, encode) { if (param == null) return ''; var arr = []; var t = typeof (param); if (t == 'string' || t == 'number' || t == 'boo... 阅读全文
posted @ 2018-12-17 17:15 小小高 阅读(3935) 评论(0) 推荐(0) 编辑
摘要:多次!important(坑) 阅读全文
posted @ 2017-03-14 10:29 小小高 阅读(10062) 评论(0) 推荐(0) 编辑
摘要:参考 http://developer.baidu.com/map/jsdemo.htm#a1_2 阅读全文
posted @ 2016-09-07 10:54 小小高 阅读(522) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html><head> <title>Simple Login Form</title> <meta charset="UTF-8" /> <meta name="Designer" content="PremiumPixels.com"> <meta name="A 阅读全文
posted @ 2016-08-08 16:41 小小高 阅读(3657) 评论(0) 推荐(0) 编辑
摘要:上面的img标签用base64数据显示一张图片 base64转文件流时注意去掉 data:image/jpeg;base64, 阅读全文
posted @ 2016-07-17 00:05 小小高 阅读(912) 评论(0) 推荐(0) 编辑
摘要:看效果: 代码(代码很乱,见谅): js: <script> (function($){ $(window).on("load",function(){ $("#content-1").mCustomScrollbar({ theme: "minimal-dark" }); }); })(jQuer 阅读全文
posted @ 2016-06-16 13:06 小小高 阅读(1062) 评论(0) 推荐(0) 编辑
摘要:全局过滤器: NO全局过滤器: FilterConfig.cs Jquery: 阅读全文
posted @ 2016-05-30 16:20 小小高 阅读(568) 评论(0) 推荐(0) 编辑
摘要:老版写法 $.support.cors = true; 新版写法 crossDomain: true 阅读全文
posted @ 2016-05-10 14:32 小小高 阅读(10064) 评论(0) 推荐(0) 编辑
摘要:<!-- 用html标签防止html转义 (html.raw方法转双引号中的双引号时不会转义) --><input id="json" type="hidden" value="@JsonConvert.SerializeObject(Model)" /> 阅读全文
posted @ 2016-04-29 12:02 小小高 阅读(1281) 评论(0) 推荐(0) 编辑
摘要:js: encodeURIComponent();编码 c#: Uri.UnescapeDataString();解码 阅读全文
posted @ 2016-04-28 12:40 小小高 阅读(739) 评论(0) 推荐(0) 编辑
摘要:Line 专线 阅读全文
posted @ 2016-04-22 15:00 小小高 阅读(1395) 评论(1) 推荐(0) 编辑
摘要:for (var i in this) { if (this[i] == null) this[i] = "";//属性如果为null,则默认为""; } this.i this.后面只能用常量,除非用eval(); 如 eval("this."+i) 不过还是推荐用this[i] 阅读全文
posted @ 2016-03-31 15:42 小小高 阅读(774) 评论(0) 推荐(0) 编辑
摘要:offsetCenter: [0, "-20px"] 阅读全文
posted @ 2016-03-29 10:24 小小高 阅读(1898) 评论(0) 推荐(0) 编辑
摘要:$("ggg div").each(function () { this.style.top = (parseFloat(this.style.top.replace("px", "")) - 165) + "px"; }); 阅读全文
posted @ 2016-01-28 15:06 小小高 阅读(2106) 评论(0) 推荐(0) 编辑
摘要:Jquery方法$("img").one("error", function(e){ $(this).attr("src", "default.gif");}); 阅读全文
posted @ 2016-01-14 12:00 小小高 阅读(1446) 评论(0) 推荐(1) 编辑
摘要:function iframeTimeOut(url, timeOut_callback, width, height) { /// /// iframe超时处理 /// /// iframe(src路径) /// 超时后执形的操作 /// 宽 /// ... 阅读全文
posted @ 2016-01-14 11:52 小小高 阅读(4110) 评论(0) 推荐(0) 编辑
摘要:function myResize() { $("#myModal")[0].style["padding-left"] = "0px"; setTimeout(myResize, 100); }myResize(); 阅读全文
posted @ 2016-01-07 14:29 小小高 阅读(139) 评论(0) 推荐(0) 编辑
摘要:下载地址:http://files.cnblogs.com/files/gaocong/jquery_pjax.rar 阅读全文
posted @ 2016-01-06 16:30 小小高 阅读(215) 评论(0) 推荐(0) 编辑
摘要:var objXMLHttp;/** * 进行createXMLHttpRequest对象的创建,由于不同的浏览器厂商对于XMLHttpRequest的支持不一样,因此创建的时候需要根据不同的浏览器进行创建 * */function createXMLHttpRequest(){ //对于Fi... 阅读全文
posted @ 2015-12-28 17:32 小小高 阅读(248) 评论(0) 推荐(0) 编辑
摘要://需要Base64见:http://www.webtoolkit.info/javascript-base64.html function make_base_auth(user, password) { var tok = user + ':' + pass... 阅读全文
posted @ 2015-12-28 16:09 小小高 阅读(2823) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示