highchart 中数据千分位显示为空格而不是逗号的解决方案
摘要:thousandsSep: String 一千的分隔符在highcharts.js 中找到 thousandsSep位置,把” “ 改为 ”,“
阅读全文
posted @
2015-06-25 14:04
张扬个性,敢为天下先
阅读(1779)
推荐(0)
JQ 使用toggle实现DIV的隐藏和显示
摘要:$('.submenuA').toggle( function () { $(this).next('div').show(); }, function () { $(this).next('div').hide(); })
阅读全文
posted @
2015-03-11 15:31
张扬个性,敢为天下先
阅读(1412)
推荐(0)
js中push()的用法
摘要:定义和用法 push() 方法可向数组的末尾添加一个或多个元素,并返回新的长度。 语法 arrayObject.push(newelement1,newelement2,....,newelementX) 实例 在本例中,我们将创建一个数组,并通过添加一个元素来改变其长度:
阅读全文
posted @
2014-09-24 14:58
张扬个性,敢为天下先
阅读(13109)
推荐(0)
js 去掉空格.回车.换行
摘要:Jquery:$("#accuracy").val($("#accuracy").val().replace(/\ +/g,""));//去掉空格$("#content").val($("#content").val().replace(/[ ]/g,"")); //去掉空格$("#content").val($("#content").val().replace(/[\r\n]/g,""));//去掉回车换行js:
阅读全文
posted @
2013-11-04 13:39
张扬个性,敢为天下先
阅读(16524)
推荐(1)
锚记的两种方式
摘要:锚记住位置1.JSwindow.location.hash="maoji";2.HTML
阅读全文
posted @
2013-08-07 14:02
张扬个性,敢为天下先
阅读(318)
推荐(0)
jquery的autocomplete在firefox的bug
摘要:在火狐下,输入中文不提交的BUG修复,在196行加入如下:红色代码可以解决.bind("flushCache", function() { cache.flush(); }).bind("setOptions", function() { $.extend(options, arguments[1]); if ( "data" in arguments[1] ) cache.populate(); }).bind("input", function() { onChange(0,true); })....
阅读全文
posted @
2013-06-05 15:38
张扬个性,敢为天下先
阅读(367)
推荐(0)
UpdatePanel局部刷新
摘要:前台代码:注意ScriptManager,和UpdatePanel是配套使用的。在ContentTemplate中写局部刷新内容 <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> ...
阅读全文
posted @
2013-03-08 16:27
张扬个性,敢为天下先
阅读(4300)
推荐(0)
clear:both
摘要:当属性设置float(浮动)时,其所在的物理位置已经脱离文档流了,但是大多时候我们希望文档流能识别float(浮动),或者是希望float(浮动)后面的元素不被float(浮动)所影响,这个时候我们就需要用clear:both;来清除。程序代码:<p style="float:left;width:200px;">这个是第1列,</p><p style="float:left;width:400px;">这个是第2列,</p><p>这个是第3列。</p>如果不用清除浮动,那么第3列文
阅读全文
posted @
2012-12-28 10:12
张扬个性,敢为天下先
阅读(891)
推荐(0)
判断容器中是否有某个标签的存在
摘要:if( $("#"+id+"").find("ul").size()<=0)
阅读全文
posted @
2012-11-27 18:14
张扬个性,敢为天下先
阅读(320)
推荐(0)
最小高度
摘要:.box { min-height:500px; height:auto !important; height:500px;}
阅读全文
posted @
2012-11-26 13:40
张扬个性,敢为天下先
阅读(270)
推荐(0)
zTree异步调用
摘要:前台代码<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script src="/scripts/Ztree/script/jquery-1.4.2.js" type="text/javascript"></script> <link href="/scripts/Ztree/style/zTreeStyle/zT
阅读全文
posted @
2012-07-26 11:22
张扬个性,敢为天下先
阅读(6920)
推荐(1)
hightchars插件
摘要:1.曲线图 var chart; $(document).ready(function () {line()});function line() { var options = { chart: { renderTo: 'container', //放置图表的容器 plotBackgroundColor: null, plotBorderWidth: ...
阅读全文
posted @
2012-06-12 16:37
张扬个性,敢为天下先
阅读(2345)
推荐(1)
Chosen—jquery选择框插件
摘要:<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script src="chosen/chosen.jquery.js" type="text/javascript"></script>应用JS文件<select class="chzn-select" data-pl
阅读全文
posted @
2012-05-11 10:29
张扬个性,敢为天下先
阅读(14862)
推荐(0)
js url加密解密
摘要:js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。例如:<script language="javascript">document.write('<a href="http://passport.baidu.com/?logout&aid=7&u='+encodeUR
阅读全文
posted @
2012-05-09 14:31
张扬个性,敢为天下先
阅读(19510)
推荐(0)
webservse导出excel和word
摘要://导出EXCEL function game_Excel() { var platname =encodeURI( $("#slectplat").val());//加密(是为了防止有中文) $("#ExcelForm").attr("action", "AjaxHandle/ExportExcel.ashx?type=game&plat=" + platname + "&time=" + time + "&impormcount=" + count
阅读全文
posted @
2012-05-07 14:03
张扬个性,敢为天下先
阅读(1201)
推荐(0)
固定表头和列头
摘要:<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script><script type="text/javascript">// <![CDATA[function FixTable(TableID, FixColumnNumber, width, height) { /// <summary> /// 锁定表头和列 /// <para> sorex.cn
阅读全文
posted @
2012-05-02 10:49
张扬个性,敢为天下先
阅读(751)
推荐(0)
jQuery的Select操作集合
摘要:jQuery获取Select选择的Text和Value: 语法解释: 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text 3. var checkValue=$("#select_id").val(); //获取Select选择的Value 4. var
阅读全文
posted @
2012-04-27 14:43
张扬个性,敢为天下先
阅读(532)
推荐(0)
拉动滚动条加载数据
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>拉动滚动条加载数据</title> <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function
阅读全文
posted @
2012-04-21 12:06
张扬个性,敢为天下先
阅读(3511)
推荐(0)
字符串转时间类型
摘要:stringtime="201201";DateTime dt = DateTime.ParseExact(time, "yyyyMM", System.Globalization.CultureInfo.CurrentCulture);
阅读全文
posted @
2012-04-20 17:43
张扬个性,敢为天下先
阅读(477)
推荐(0)
System.Web.UI.UserControl”,因此此处不允许
摘要:ASP.net中出现不扩展类“System.Web.UI.UserControl”,因此此处不允许。此类问题时。这个问题是在我使用用户控件加载数据时出现的错误!在 aspx。cs 页面 直接可以这样 用public partial class UserLogin : System.Web.UI.Page但 当我把页面做成用户控件 WebUserControl 在后台 public partial class WebUserControl: System.Web.UI.Page就会报这个错误WebUserControlTop 不扩展类“System.Web.UI.UserControl”,因此此
阅读全文
posted @
2012-03-31 14:33
张扬个性,敢为天下先
阅读(2303)
推荐(0)