随笔分类 -  javascript&Jquery

摘要:http://stackoverflow.com/questions/881515/how-do-i-declare-a-namespace-in-javascript(function( skillet, $, undefined ) { //Private Property var ... 阅读全文
posted @ 2016-01-08 10:24 ^_^哈哈 阅读(172) 评论(0) 推荐(0)
摘要:$(function() { $(document).ajaxStop(function() { $(this).unbind("ajaxStop"); //prevent running again when other calls finish LoadContact(); })... 阅读全文
posted @ 2014-08-27 19:33 ^_^哈哈 阅读(3842) 评论(0) 推荐(0)
摘要:1 阅读全文
posted @ 2013-10-12 10:03 ^_^哈哈 阅读(5181) 评论(0) 推荐(0)
摘要:代码一: javascript:document.body.contentEditable='true';document.designMode='on';void0代码二:javascript:document.body.contentEditable='false';void0功能介绍:第一段代码可以使任何网页进入在线编辑状态,第二段代码退出编辑状态使用方法:先在IE中打开要编辑的网页,然后在该页地址栏上输入第一段代码,就可以编辑该网页了,编辑结束后,在地址栏上输入第二段代码,就可以退出编辑状态了。http://blog.csdn.net/y 阅读全文
posted @ 2013-09-17 17:02 ^_^哈哈 阅读(1746) 评论(0) 推荐(0)
摘要:具有树结构的表datatable生成树结构的json字符串,前台生成树1.实现效果2.代码 public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } [WebMethod] public static string GetJsonTree() { DataTable dtLevels = GetData(); ... 阅读全文
posted @ 2013-07-08 10:18 ^_^哈哈 阅读(888) 评论(0) 推荐(0)
摘要:满意 不满意啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 1 <html> 2 <head> 3 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/JavaScript"></script> 4 <script type="text/JavaScript"> 5 $(document).ready(function () 6 { 7 $("#nee 阅读全文
posted @ 2013-05-15 10:11 ^_^哈哈 阅读(3126) 评论(0) 推荐(0)
摘要:///clear value in textboxfunction clearControlValueForm() { $(':input:text').not(':button, :submit, :reset, :hidden') .val('').removeAttr('selected').css("border", "");}///validate the empty value in textbox ,if has empty value ,prevent submit$(doc 阅读全文
posted @ 2013-01-31 09:39 ^_^哈哈 阅读(334) 评论(0) 推荐(0)