• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
胡卫军
博客园    首页    新随笔    联系   管理    订阅  订阅
2014年7月31日
前台调用后台函数
摘要: 调用 var b = $ajax("WebApplication1._Default.GetDataSet", ["23"]);js:/*方法全名,参数,类所在的程序集名称(当方法类所在的命名空间不是程序集名称时请传参数来)*/function $ajax(paramMethod, paramVal... 阅读全文
posted @ 2014-07-31 15:53 胡卫军 阅读(372) 评论(0) 推荐(0)
flv mp4视频播放
摘要: protected void Page_Load(object sender, EventArgs e) { //这个你可以直接指定路径,当然可以接收从另外一页传过来的参数,再有一个就是从数据库取出来啦。 string file = ResolveUrl("~/Flv/歌曲:王菲《传奇》.fl... 阅读全文
posted @ 2014-07-31 15:49 胡卫军 阅读(233) 评论(0) 推荐(0)
防止异步刷掉jquery加载绑定事件
摘要: 阅读全文
posted @ 2014-07-31 11:14 胡卫军 阅读(233) 评论(0) 推荐(0)
table数据再次处理
摘要: Table的聚合函数Compute (表达式,条件)中简单的聚合函数string strSumAccount = myDs.Tables[0].Compute("SUM(AccountMoney(列))", "").ToString(); 计算datatable的列的总和分页PagedDataSou... 阅读全文
posted @ 2014-07-31 10:55 胡卫军 阅读(186) 评论(0) 推荐(0)
后台调用前台函数
摘要: ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", ""); 阅读全文
posted @ 2014-07-31 10:54 胡卫军 阅读(139) 评论(0) 推荐(0)
Split生成的数组没有空字符
摘要: string[] myArrayList = paramID.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); 阅读全文
posted @ 2014-07-31 10:53 胡卫军 阅读(256) 评论(0) 推荐(0)
像页面输出脚本
摘要: 无异步的 js = "window.parent.onComplete(" + System.Convert.ToString(uploadInfo.State != "Stop").ToLower() + ");"; } ScriptManager.RegisterStartupScript(... 阅读全文
posted @ 2014-07-31 10:51 胡卫军 阅读(101) 评论(0) 推荐(0)
js jq 一些属性
摘要: $(document).ready(function () { }); window.onload=方法;页面加载完触发var iWidth = 300; //窗口宽度 var iHeight = 200; //窗口高度 var iTop = (window.screen.height - iH... 阅读全文
posted @ 2014-07-31 10:50 胡卫军 阅读(320) 评论(0) 推荐(0)
默认图片
摘要: onerror=\"this.src='images/Null.gif'\" //默认图片 阅读全文
posted @ 2014-07-31 10:46 胡卫军 阅读(111) 评论(0) 推荐(0)
将Date(...)转换成yyyy-mm-dd
摘要: //yyyy-mm-ddfunction ChangeDateFormat(time) { if (time != null) { var date = new Date(parseInt(time.replace("/Date(", "").replace(")/", ""), 10)); var... 阅读全文
posted @ 2014-07-31 10:38 胡卫军 阅读(599) 评论(0) 推荐(0)
浮动
摘要: 定位浮动style="position:fixed; float:none; top:30px; margin:auto"div浮动position:fixed;Z-INDEX:99; top:20%; left:30%; 阅读全文
posted @ 2014-07-31 10:25 胡卫军 阅读(132) 评论(0) 推荐(0)
加小手
摘要: style="cursor:pointer"javascript:void() 阅读全文
posted @ 2014-07-31 10:24 胡卫军 阅读(115) 评论(0) 推荐(0)
数字字母不换行问题
摘要: word-break: break-all; word-wrap:break-word; 阅读全文
posted @ 2014-07-31 10:23 胡卫军 阅读(129) 评论(0) 推荐(0)
IE8变IE7
摘要: 阅读全文
posted @ 2014-07-31 10:21 胡卫军 阅读(134) 评论(0) 推荐(0)
Visible readonly enabled
摘要: Visible="false" 不显示控件readonly="false" 无法改变数值enabled="false" 不相应鼠标事件 阅读全文
posted @ 2014-07-31 10:17 胡卫军 阅读(139) 评论(0) 推荐(0)
限定输入
摘要: 只能输入中文 只能输入英文和数字 只能是数字 只能显示,不能修改的文本框/限制字数 阅读全文
posted @ 2014-07-31 10:16 胡卫军 阅读(177) 评论(0) 推荐(0)
异步刷新
摘要: 《--内容--》 阅读全文
posted @ 2014-07-31 10:15 胡卫军 阅读(91) 评论(0) 推荐(0)
递归查询所有子集
摘要: with myCte as(select * from RS_Comment where id=10000004union allselect RS_Comment.* from RS_Comment inner join myCte on RS_Comment.ParantID=myCte.id... 阅读全文
posted @ 2014-07-31 10:13 胡卫军 阅读(166) 评论(0) 推荐(0)
控制函数执行
摘要: 不断执行timer1=setInterval(方法名,500);(500毫秒)clearInterval(timer1);取消不断执行js 延迟执行setTimeout(function () { window.location.reload() }, 3000); 阅读全文
posted @ 2014-07-31 10:04 胡卫军 阅读(127) 评论(0) 推荐(0)
bind 与unbind
摘要: bind 绑定 $("#btnSave").bind("click", BtnSaveClick);function BtnSaveClick(){...}$("#btnSave").click() 执行事件unbind 删除绑定 阅读全文
posted @ 2014-07-31 10:02 胡卫军 阅读(191) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3