上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: windows7下java环境变量配置方法http://wenku.baidu.com/view/1dc7235abe23482fb4da4c25.html 阅读全文
posted @ 2012-09-04 16:00 lear 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1. 为什么JQM的界面数据发生变化时需要refresh操作?JQM里面当我们更新了某些页面标签(如: listview, radiobuttons, checkboxes, select menus)里的数据时,必须做efresh操作.为什么必须做refresh操作操作呢?因为JQM在做页面渲染的时候,为了使样式跟客户端程序相似, 隐藏了原始的标签然后用一些新的标签和自定义的样式来表现原标签,其实新样式的标签已经不是原来的标签,所以更新了数据必须做refresh操作.我们来看select原标签和JQM渲染过后的select标签:原始的渲染过的2. 各类标签的刷新这里列出最常用的标签的efre 阅读全文
posted @ 2012-09-01 16:22 lear 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 页面跳转rel="external"data-ajax='false' jQuery(document).ready(function() { $("#submit").bind("click", function() { $.mobile.changePage("c.html", { type: "get", data: "id=aa" }); }); }); 阅读全文
posted @ 2012-08-31 13:47 lear 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Regex re = new Regex("<a[^>]+href=[^>]+>[^<]*</a>");//这个可以过滤掉所有的超链接的内容Regex re = new Regex("<a.*?>|</a>");//过滤超链接中的<a ....>xxx</a>标签,标签中xxx内容保留 阅读全文
posted @ 2012-04-26 09:57 lear 阅读(978) 评论(1) 推荐(1) 编辑
摘要: <a href="http://www.baidu.com" onclick="alert('aa');return false;">gogog</a>.net cs文件的判断提示 if (recontent.Length < 10 || recontent.Length > 2000) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ok", "alert('内容长度应在10-2000字 阅读全文
posted @ 2012-04-25 14:25 lear 阅读(173) 评论(0) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions;public static bool IsInt(string inString){ Regex regex = new Regex("^[0-9]*[1-9][0-9]*$"); return regex.IsMatch(inString.Trim());} 阅读全文
posted @ 2012-04-19 09:52 lear 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 用SQL Server Profiler看sql效率时,发现会隔几秒自动执行一些东西。停掉 SQL Server Reporting Services (MSSQLSERVER) 服务,就不会重复执行那些气人的东西了。 阅读全文
posted @ 2012-03-14 22:24 lear 阅读(186) 评论(0) 推荐(0) 编辑
摘要: String CleanInput(string strIn) { // Replace invalid characters with empty strings. // Replace all html tags return Regex.Replace(strIn, @"</?[^>]*>", ""); // Replace html tags div or span //return Regex.Replace(strIn, @"</?(div|span)[^>]*>", "&qu 阅读全文
posted @ 2012-03-12 09:28 lear 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Shift+Alt+Enter: 切换全屏编辑 Ctrl+B,T / Ctrl+K,K: 切换书签开关 Ctrl+B,N / Ctrl+K,N: 移动到下一书签 Ctrl+B,P: 移动到上一书签 Ctrl+B,C: 清除全部标签 Ctrl+I: 渐进式搜索 Ctrl+Shift+I: 反向渐进式搜索 Ctrl+F: 查找 Ctrl+Shift+F: 在文件中查找 F3: 查找下一个 Shift+F3: 查找上一个 Ctrl+H: 替换 Ctrl+Shift+H: 在文件中替换 Alt+F12: 查找符号(列出所有查找结果) Ctrl+Shift+V: 剪贴板循环 Ctrl+左右箭头键... 阅读全文
posted @ 2012-03-08 11:16 lear 阅读(174) 评论(0) 推荐(0) 编辑
摘要: .net的网站,Viewstate视图状态的隐藏内容有时候会很长,影响到搜索引擎的收录问题,下面这段代码通过重写System.Web.UI.Page中的Render方法,来实现把ViewState调整到网站的底部。View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Web.UI;using System.Threading;using System.Text.RegularExpressions;using 阅读全文
posted @ 2012-03-01 21:05 lear 阅读(287) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页