茶树

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年5月20日

摘要: //两种方法设置disabled属性 $('#fileup').attr("disabled",true); $('#fileup').attr("disabled","disabled"); //三种方法移除disabled属性 $('#fileup').attr("disabled",false 阅读全文
posted @ 2016-05-20 13:19 "茶树" 阅读(502) 评论(0) 推荐(0) 编辑

2016年5月18日

摘要: DropDownList在从数据库中得到数据源绑定后,添加一个"请选择"或"全部"之类的项 1:直接添加:<asp:ListItem Value="0">请选择</asp:ListItem>,然后在DropDownList中添加一个属性: AppendDataBoundItems="True" : 阅读全文
posted @ 2016-05-18 14:09 "茶树" 阅读(515) 评论(0) 推荐(0) 编辑

2016年5月17日

摘要: Jquery代码 /// <reference path="jquery-1.9.1-vsdoc.js" />//锚点var anchor="#apage";$(function(){ pagerFun(); $("#btnSearch").click(function(){ var name=$. 阅读全文
posted @ 2016-05-17 17:33 "茶树" 阅读(230) 评论(0) 推荐(0) 编辑

摘要: 序列化问题:查询度娘各种答案不一 多为修改web.config找到SessionState节,将Mode 设置为 InProc ,还有舍弃Session用cookie存储,多经试验觉得还是写一个序列化的实体类靠谱点 在实体类上加上[Serializable()] 阅读全文
posted @ 2016-05-17 17:22 "茶树" 阅读(3206) 评论(1) 推荐(1) 编辑

2016年5月16日

摘要: Jquery代码 <script type="text/javascript"> $(function(){ //提交事件 $("#ImageButton1").click(function(){ //省Id var provinceId=$("#selProvince").val(); //市Id 阅读全文
posted @ 2016-05-16 17:55 "茶树" 阅读(843) 评论(0) 推荐(0) 编辑

2016年5月13日

摘要: 用Repeater绑定数据,点赞功能,老大催着要,也没有太大的访问量暂时没写 数据并发 后台写方法读出点赞数据 开始写jQuery //jquery基本语法就不细说了 <script type="text/javascript"> $(function(){ $(".img_zan").mouseo 阅读全文
posted @ 2016-05-13 16:55 "茶树" 阅读(927) 评论(0) 推荐(1) 编辑

摘要: 转自:http://www.cnblogs.com/qqflying/archive/2007/12/18/1004051.html VSS连接错误提示: Could not find the Visual SourceSafe Internet Web Service connection inf 阅读全文
posted @ 2016-05-13 09:42 "茶树" 阅读(226) 评论(0) 推荐(0) 编辑

2016年5月10日

摘要: 注:本文转自公众号“mjw-java” 如何获取不重复的随机数方法一:换位排除法public static int[] getNoRepeatNumByChange(int[] arr, int noRepeatNums) { int[] newArr = new int[noRepeatNums] 阅读全文
posted @ 2016-05-10 09:36 "茶树" 阅读(611) 评论(0) 推荐(0) 编辑

2016年5月6日

摘要: 一、DropDownList默认选中 开始的笨方法: foreach (ListItem item in DropDownList1.Items) { if (pet.Category == item.Text) { item.Selected = true; break; } } 师傅指点后--》 阅读全文
posted @ 2016-05-06 15:24 "茶树" 阅读(141) 评论(0) 推荐(0) 编辑

摘要: 1、官网下载JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (注:JDK尽量下载1.7版本以上) 2、下载ecplice http://pan.baidu.com/s/1k 阅读全文
posted @ 2016-05-06 13:48 "茶树" 阅读(275) 评论(0) 推荐(0) 编辑