码迷,mamicode.com
首页 > Web开发
使用Ajax发送异步请求的步骤
1.获取Ajax对象:获取XMLHttpRequest对象实例function getXhr(){ var xhr = null; if(window.XMLHttpRequest){ xhr = new XMLHttpRequest();//非IE浏览器 }else...
分类:Web程序   时间:2015-07-18 15:27:28    阅读次数:253
深入浅出js事件
事件冒泡和事件捕获分别由微软和网景公司提出,这两个概念是为了解决页面中事件流(事件发生顺序)的问题。 1.事件冒泡 微软提出了名为事件冒泡的事件流。事件冒泡可以形象地比喻为把一颗石头投入水中,泡泡会一直从水底冒出水面。也就是说,事件会从最内层的元素开始发生,一直向上传播,直到document对象。...
分类:Web程序   时间:2015-07-18 15:25:45    阅读次数:143
checkbox全选/全不选/反选(jQuery v1.11.3测试通过)
主要功能:方式一:使用三个按钮(全选、全不选 、反选)控制checkbox的选择。(实际可能全选/全不选共用按钮,这里没做)方式二:使用一个主控checkbox用于控制其他checkbox的选择状态,同时受控checkbox是否全选也反馈给主控checkbox(这里有两种方式实现)。以下代码及实现效...
分类:Web程序   时间:2015-07-18 15:27:00    阅读次数:1307
关于ajax的跨域
这个问题是关于ajax跨域访问的首先:本地file下jsvar localPath="http://192.168.100.161:8080";$(function(){ var uuid="28293c941a3a322d9d9049a48a1045a2"; ...
分类:Web程序   时间:2015-07-18 15:24:48    阅读次数:136
css3属性
圆角效果: border-radius: 5px 4px 3px 2px; /* 四个半径值分别是左上角、右上角、右下角和左下角,顺时针 */ 阴影: box-shadow:X轴偏移量 Y轴偏移量 [阴影模糊半径] [阴影扩展半径] [阴影颜色] [投影方式(inset)]; 1、阴影模糊半径与阴....
分类:Web程序   时间:2015-07-18 15:22:51    阅读次数:186
Log4Net生成出现未引用错误解决方法
1.步骤一:2.步骤二:明明添加了引用怎么还提示找不到命名空间呢。解决这个问题很简单,右键项目选择属性:3.步骤三:换成.NET Framework 4即可,解决!4.两个有啥区别?Microsoft .NET Framework 4 Client Profile 提供了 .NET Framewor...
分类:Web程序   时间:2015-07-18 15:21:51    阅读次数:121
Http 协议学习笔记 (燕十三老师)
Http 协议重要性:1. 无论以后用 WebService 还是用 rest 作大型架构,都离不开。WebService = Http 协议 + XMLRest = HTTP 协议 + Json各种 API , 一般也是用 http + XML/json 来实现2. 以及 Ajax 的学习什么是协...
分类:Web程序   时间:2015-07-18 15:18:12    阅读次数:227
.NET缓存管理
using System;using System.Collections;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Web;using S...
分类:Web程序   时间:2015-07-18 14:01:39    阅读次数:152
.NET文件操作类(二)
using System;using System.Configuration;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.Ht...
分类:Web程序   时间:2015-07-18 14:02:57    阅读次数:148
.NET图片操作类,包含图片格式转换、图片缩放、 文字水印、图片水印、路径转换
using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Drawing.Imaging;using System.Drawing;using System.Web;nam...
分类:Web程序   时间:2015-07-18 14:01:15    阅读次数:125
.Net日期时间帮助类(二)
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ZC.Utils{ public class TimeHelper { /// /// 计算时间过去了几天 ///....
分类:Web程序   时间:2015-07-18 14:01:04    阅读次数:126
Ajax原理
1.什么是Ajax?Ajax:asynchronous JavaScript and XML,异步的javascript和xml.Ajax是一种用来改善用户体验的的技术,其本质是,使用XMLHtttpRequest对象异步向服务器发送请求.服务器返回部分数据,以页面无刷新的效果改变页面中的局部内容(...
分类:Web程序   时间:2015-07-18 13:59:18    阅读次数:169
.NET产生随机数
using System;using System.Configuration;using System.Text;using System.Data;namespace ZC.Utils{ /// /// Assistant 的摘要说明。 /// public sealed class Ran.....
分类:Web程序   时间:2015-07-18 14:01:04    阅读次数:158
.Net使用FTP模式跨域上传图片
using System;using System.IO;using System.Net;using System.Web.UI.WebControls;namespace ZC.Utils{ public class FTPHelper { public string Upload(FileUp...
分类:Web程序   时间:2015-07-18 13:59:36    阅读次数:153
.NET正则表达式字符串验证,案列
using System.Text;using System.Text.RegularExpressions;namespace ZC.Utils{ public class ValidateHelper { private static Regex RegNumber = new Regex("^...
分类:Web程序   时间:2015-07-18 13:58:14    阅读次数:180
.NET文件操作帮助类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Web;namespace ZC.Utils{ public partial ...
分类:Web程序   时间:2015-07-18 13:58:14    阅读次数:109
phpstorm 8.0.3 注册码
Learn Programming===== LICENSE BEGIN =====63758-1204201000000Ryqh0NCC73lpRm!XVcxFChJ2gTUR2lZtlLXrPLbQ66Gs8MHs51RvF2yagoDlzne08Zm8VXbts1UMKE!EW4v8G====...
分类:Web程序   时间:2015-07-18 13:55:31    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!