摘要:
ajaxSend( callback ) 在一个AJAX请求发送时,执行一个函数。这是一个Ajax事件 $(”#msg”).ajaxSend(function(evt, request, settings){ $(this).append(”Successful Request!”); }); jQuery.ajaxSetup( options ) 为所有的AJAX请求进行全局设置。查看$.a...
阅读全文
posted @ 2010-11-30 20:52
CsharpHome
阅读(90)
推荐(0)
摘要:
Attribute: $(”p”).addClass(css中定义的样式类型); 给某个元素添加样式 $(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map $(”img”).attr(”src”,”test.jpg”); 给某个元素添加属性/值 $(”img”).attr(”title”, function(...
阅读全文
posted @ 2010-11-30 20:49
CsharpHome
阅读(138)
推荐(0)
posted @ 2010-11-30 20:47
CsharpHome
阅读(155)
推荐(0)
摘要:
1、命名空间.脚本所在的文件夹.文件名称 [assembly: WebResource("PicturesRotation.Javascript.JScript1.js", "application/x-javascript", PerformSubstitution = true)] 2、js文件属性设置为嵌入的资源 3、有两种方法如下: (1) prote...
阅读全文
posted @ 2010-11-30 20:42
CsharpHome
阅读(225)
推荐(0)
摘要:
logo-yy.gif http://www.baidu.com baidu 50 163 google-search.png http://www.google.com google 50 168
阅读全文
posted @ 2010-11-30 09:39
CsharpHome
阅读(101)
推荐(0)
posted @ 2010-11-30 09:23
CsharpHome
阅读(96)
推荐(0)
摘要:
public class People { private string name; private int age; public People() { } public string Name { get { return name; } set { name = value; } } public in...
阅读全文
posted @ 2010-11-30 09:05
CsharpHome
阅读(176)
推荐(0)
摘要:
protected void Button1_Click(object sender, EventArgs e) { Response.Cookies["UserName"].Value = TextBox1.Text; Response.Cookies["UserName"].Expires = DateTime.Now.AddHours(1); HttpCookie mycookie = ne...
阅读全文
posted @ 2010-11-30 08:51
CsharpHome
阅读(232)
推荐(0)