您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

jquery 学习笔记一_jquery

2024/2/20 10:27:20发布21次查看
jquery基本信息
jquery的官方网站:www.jquery.com
jquery解释: jquery是javascript的类库,提供了大量的javascript的类库和api,方便javascript开发。
jquery api中文参考手册: http://jquery-api-zh-cn.googlecode.com/svn/trunk/index.html
前台数据提交到后台demo:
实例图:
功能点:
1.使用$(#username)获取id为username的jquery对象。
2.使用jquery的get、ajax、load三个方法向后台提交数据。
3.使用jquery的removeclass和addclass方法修改样式。
4.encodeuri(username)将字符串转码,防止中文出现乱码,注意后台要用system.web.httputility.urldecode(str,encoding)解码
前台html:
复制代码 代码如下:
请输入名称:
服务器端代码:
复制代码 代码如下:
protected void page_load(object sender, eventargs e)
{
if (httpcontext.current.request.querystring[m] != null)
{
//将请求的数据通过gb2312解码
string method = system.web.httputility.urldecode(httpcontext.current.request.querystring[m], encoding.getencoding(gb2312));//
httpcontext.current.response.write(method+已经被验证!);
response.end();
}
}
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product