摘要: //C#代码 public void GetJsonDate() { object o = System.Windows.Browser.HtmlPage.Window.Eval("GetJsonDate();"); if (o != null) { if (o.ToString() == "over") { LoadValue(); System.Windows.Thre... 阅读全文
posted @ 2012-07-25 16:03 biubiubiu 阅读(356) 评论(0) 推荐(0) 编辑
摘要: //YPageList /// <summary> /// 总数据个数 /// </summary> private int _datatotalcount; /// <summary> /// 当前页数据个数 /// </summary> private int _pagesize; /// <summary> /// 当前页索引 /// </summary> private int _pageindex; /// <sum... 阅读全文
posted @ 2012-05-30 11:21 biubiubiu 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 原理:利用1px*1px的div画图 <script type="text/javascript"> function makedot(x, y) { //画点函数 document.write("<div style='height:1px;width:1px; position:absolute;left:" + x + "px;top:" + y + "px;background:#fff;overflow:hidden'></div>") } /** 函数 阅读全文
posted @ 2012-05-28 17:29 biubiubiu 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: private void Btn_Upload_Click(object sender, System.EventArgs e) { if(UploadFile.PostedFile.FileName.Trim()!="") { //上传文件 string extension = Path.GetExtension(UploadFile.PostedFile.FileName).ToUpper(); string fileName = DateT... 阅读全文
posted @ 2012-05-18 10:33 biubiubiu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: var w3c = (document.getElementById) ? true : false; var agt = navigator.userAgent.toLowerCase(); var ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1)); function IeTrueBody() { return (document.com... 阅读全文
posted @ 2012-05-09 16:32 biubiubiu 阅读(411) 评论(0) 推荐(0) 编辑
摘要: ´ &acute; © &copy; > &gt; µ &micro; ® &reg; & &amp; ° &deg; ¡ &iexcl; &nbsp; » &raquo; ¦ &brvbar; ÷ &divide; ¿ &iquest; ¬ &not; § &sect; • &bull; ½ &frac12;  阅读全文
posted @ 2012-05-09 13:44 biubiubiu 阅读(221) 评论(0) 推荐(0) 编辑
摘要: function getQueryString(name) {//获取url上传过来的参数 var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i"); if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return;}例: www.baidu.com?type=namevar type = getQueryStr 阅读全文
posted @ 2012-04-24 12:00 biubiubiu 阅读(261) 评论(0) 推荐(0) 编辑
摘要: escape() 方法:采用ISO Latin字符集对指定的字符串进行编码。所有的空格符、标点符号、特殊字符以及其他非ASCII字符都将被转化成%xx格式的字符编码(xx等于该字符在字符集表里面的编码的16进制数字)。比如,空格符对应的编码是%20。不会被此方法编码的字符: @ * / +encodeURI() 方法:把URI字符串采用UTF-8编码格式转化成escape格式的字符串。不会被此方法编码的字符:! @ # $& * ( ) = : / ; ? + 'encodeURIComponent() 方法:把URI字符串采用UTF-8编码格式转化成escape格式的字符串。 阅读全文
posted @ 2012-03-15 12:56 biubiubiu 阅读(2560) 评论(0) 推荐(0) 编辑
摘要: var date = new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; var currentDate = date.getDate() < 10 ? "0" + date.getDate() : 阅读全文
posted @ 2012-02-20 15:35 biubiubiu 阅读(283) 评论(0) 推荐(0) 编辑
摘要: <system.webServer> <staticContent> <mimeMap fileExtension=".dae" mimeType="text/xml" /> </staticContent> </system.webServer> 阅读全文
posted @ 2012-02-15 09:33 biubiubiu 阅读(725) 评论(0) 推荐(1) 编辑