随笔分类 -  Js & Jquery

摘要:使用jquery-qrcode生成二维码,支持中文 //jquery.qrcode.min.js (function (r) { r.fn.qrcode = function (h) { var s; function u(a) { this.mode = s; this.data = a } function ... 阅读全文
posted @ 2013-12-26 15:52 深南大道 阅读(151) 评论(0) 推荐(0)
摘要:function showLoad(tipInfo, type, autohide) { var pic = ""; switch (type) { case 0: // loading pic = "./Images/loading.gif"; break; case 1: // ok ... 阅读全文
posted @ 2013-12-20 11:46 深南大道 阅读(208) 评论(0) 推荐(0)
摘要:$.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", //第一种方式传参 // data: {name:"John",location:"Boston"} //第二种方式传参 // data: {foo: 阅读全文
posted @ 2013-12-16 13:53 深南大道 阅读(345) 评论(0) 推荐(0)
摘要:Ajax和getJSON获取后台普通Json数据和层级Json数据解析 方式一 ____________________________________ 方式二 ____________________________________ 方式三 _____... 阅读全文
posted @ 2013-12-14 10:56 深南大道 阅读(194) 评论(0) 推荐(0)
摘要:在.net 2.0中提取这样的json {"name":"lily","age":23,"addr":{"city":guangzhou,"province":guangdong}} 引用命名空间 using Newtonsoft.Json; using Newtonsoft.Json.Linq; 阅读全文
posted @ 2013-12-13 17:23 深南大道 阅读(788) 评论(0) 推荐(0)
摘要:using System; using System.Web; using System.Web.Script.Serialization; using System.IO; using System.Text; using System.Collections.Generic; using Newtonsoft.Json;... 阅读全文
posted @ 2013-12-09 11:38 深南大道 阅读(176) 评论(0) 推荐(0)
摘要:Qtip2 插件提示 测试一 测试二 测试三 测试四 测试五 测试六 测试七 $.fn.qtip.defaults = { // 页面加载完成就创建提示信息的元素 prerender: false, // 为提示信息设置id,如设置为myT... 阅读全文
posted @ 2013-12-06 16:37 深南大道 阅读(198) 评论(0) 推荐(0)
摘要:Jquery Uploadify上传带进度条,且多参数 上传| 取消上传 using System; using System.W... 阅读全文
posted @ 2013-12-05 17:39 深南大道 阅读(195) 评论(0) 推荐(0)
摘要:Uploadify有一个参数是 buttonText 这个无论你怎么改都不支持中文,因为插件在js里用了一个转码方法把这个参数的值转过码了,解码的地方在那个swf文件里,看不到代码,所以这条路不行。 另一个参数,网上很少提到,是 buttonImg( 按钮图片),这时你完全可以用一个图片来替换掉插件 阅读全文
posted @ 2013-12-02 15:29 深南大道 阅读(278) 评论(0) 推荐(0)
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebPrint.aspx.cs" Inherits="WebPrint" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transiti 阅读全文
posted @ 2013-12-02 14:47 深南大道 阅读(1138) 评论(0) 推荐(0)
摘要:jQueryAjaxJson取值示例 using System; //新增 using System.Web.Script.Serialization; using System.Collections.Generic; public partial class AjaxQuery : System.Web.UI.Page { ... 阅读全文
posted @ 2013-11-30 16:30 深南大道 阅读(185) 评论(0) 推荐(0)
摘要:function IsEmail(str) { var r = /^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; if (r.test(str)) { return true; } else { return false; } } functio 阅读全文
posted @ 2013-11-29 17:50 深南大道 阅读(164) 评论(0) 推荐(0)
摘要:商品分类 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using Syst... 阅读全文
posted @ 2013-11-29 12:37 深南大道 阅读(327) 评论(0) 推荐(0)
摘要:--- Server Side ------------------------------------------------------ --- Cl... 阅读全文
posted @ 2013-09-09 15:34 深南大道 阅读(177) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2013-08-28 09:34 深南大道 阅读(169) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Jquery使用mouseenter和mouseleave实现鼠标经过弹出层且可以点击</title> <script src="JS/jquery-1.9.1.js" type="t 阅读全文
posted @ 2013-08-15 17:02 深南大道 阅读(563) 评论(0) 推荐(0)
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JquerySort.aspx.cs" Inherits="demo_JquerySort" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 阅读全文
posted @ 2013-05-17 12:12 深南大道 阅读(501) 评论(0) 推荐(0)
摘要:Jquery Uploadify上传带进度条,且多参数 用户名: 相册名: 上传| 取消上传 using System; using System.Web; using Syste... 阅读全文
posted @ 2013-04-17 09:16 深南大道 阅读(174) 评论(0) 推荐(0)
摘要:HTML无限层级目录树 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Text; using System.Web... 阅读全文
posted @ 2012-08-23 14:58 深南大道 阅读(214) 评论(0) 推荐(0)