
javaScript
文章平均质量分 72
夏鑫
这个作者很懒,什么都没留下…
展开
-
头像预览
http://www.w3.org/1999/xhtml">Firefox3,IE6,IE7,IE8上传图片预览#preview_wrapper{ display:inline-block; width:100px; height:100px; background-color:#FFFFFF;}#preview_fake{ /*原创 2011-11-15 14:29:48 · 1638 阅读 · 0 评论 -
jQuery_悬浮按钮控制页面滚动
悬浮按钮控制页面滚动 $(function(){ $("#downButton").click(function(){ wind转载 2011-11-24 17:15:35 · 4378 阅读 · 0 评论 -
表格 列 tr 隐藏,显示
$(function(){ var bool = false; $.each($("#table_result_list tr"),function(i,n){ $(this).click(function(){ //$(this).after("aaaaaaa"); if($(this).find('.hiddenTr').attr('class')原创 2011-12-09 11:01:03 · 1075 阅读 · 0 评论 -
回车时绑定事件
$(function(){ $("#rand").keypress(function(event){ if (event.keyCode == 13 || event.which == 13) { login(); } });});原创 2012-01-05 16:18:28 · 307 阅读 · 0 评论 -
一个简单的方法,对HTML的字符进行转义
/** * 格式化HTML文本 * @param content * @return */public static String html(String content) {if(content==null) return ""; String html = content;html = StringUtils.replace(html, "转载 2012-02-02 15:59:04 · 418 阅读 · 0 评论 -
正则验证的两种方式
第一种方式:var regu="^(([0-9a-zA-Z]+)|([0-9a-zA-Z]*[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT){1}quot;;var re=new RegExp(regu);原创 2012-01-05 16:28:22 · 447 阅读 · 0 评论 -
js
function ShowObjProperty(Obj) { var PropertyList=''; var PropertyCount=0; for(i in Obj){ if(Obj.i !=null) PropertyList=PropertyList+i+'属性:'+Obj.i+'\r\n'; else PropertyList=PropertyList原创 2013-07-26 12:56:41 · 459 阅读 · 0 评论