随笔分类 - js
摘要:function pars(param, key, encode) { if (param == null) return ''; var arr = []; var t = typeof (param); if (t == 'string' || t == 'number' || t == 'boo...
阅读全文
摘要:参考 http://developer.baidu.com/map/jsdemo.htm#a1_2
阅读全文
摘要:<!DOCTYPE html><html><head> <title>Simple Login Form</title> <meta charset="UTF-8" /> <meta name="Designer" content="PremiumPixels.com"> <meta name="A
阅读全文
摘要:上面的img标签用base64数据显示一张图片 base64转文件流时注意去掉 data:image/jpeg;base64,
阅读全文
摘要:看效果: 代码(代码很乱,见谅): js: <script> (function($){ $(window).on("load",function(){ $("#content-1").mCustomScrollbar({ theme: "minimal-dark" }); }); })(jQuer
阅读全文
摘要:全局过滤器: NO全局过滤器: FilterConfig.cs Jquery:
阅读全文
摘要:老版写法 $.support.cors = true; 新版写法 crossDomain: true
阅读全文
摘要:<!-- 用html标签防止html转义 (html.raw方法转双引号中的双引号时不会转义) --><input id="json" type="hidden" value="@JsonConvert.SerializeObject(Model)" />
阅读全文
摘要:js: encodeURIComponent();编码 c#: Uri.UnescapeDataString();解码
阅读全文
摘要:for (var i in this) { if (this[i] == null) this[i] = "";//属性如果为null,则默认为""; } this.i this.后面只能用常量,除非用eval(); 如 eval("this."+i) 不过还是推荐用this[i]
阅读全文
摘要:offsetCenter: [0, "-20px"]
阅读全文
摘要:$("ggg div").each(function () { this.style.top = (parseFloat(this.style.top.replace("px", "")) - 165) + "px"; });
阅读全文
摘要:Jquery方法$("img").one("error", function(e){ $(this).attr("src", "default.gif");});
阅读全文
摘要:function iframeTimeOut(url, timeOut_callback, width, height) { /// /// iframe超时处理 /// /// iframe(src路径) /// 超时后执形的操作 /// 宽 /// ...
阅读全文
摘要:function myResize() { $("#myModal")[0].style["padding-left"] = "0px"; setTimeout(myResize, 100); }myResize();
阅读全文
摘要:下载地址:http://files.cnblogs.com/files/gaocong/jquery_pjax.rar
阅读全文
摘要:var objXMLHttp;/** * 进行createXMLHttpRequest对象的创建,由于不同的浏览器厂商对于XMLHttpRequest的支持不一样,因此创建的时候需要根据不同的浏览器进行创建 * */function createXMLHttpRequest(){ //对于Fi...
阅读全文
摘要://需要Base64见:http://www.webtoolkit.info/javascript-base64.html function make_base_auth(user, password) { var tok = user + ':' + pass...
阅读全文