This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Ajax(parametObject) { | |
var xhr, responseType, defineParam, method, url, data; | |
defineParam = { | |
method : "GET", | |
type : "json" | |
} | |
url = parametObject.url; | |
data = parametObject.data; | |
responseType = parametObject.type || defineParam.type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var drag = document.getElementById('drag'); | |
var inputX = document.getElementById('x'); | |
var inputY = document.getElementById('y'); | |
if(document.attachEvent){ | |
drag.attachEvent('onmousedown',dragHandle); | |
}else{ | |
drag.addEventListener('mousedown', dragHandle,false); | |
} | |
function dragHandle(event){ | |
var event = event||window.event; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function htmlEscape(text) { | |
return text.replace(/[<>"&]/g, function(match, pos, originalText){ | |
switch(match) { | |
case "<" : return "<"; | |
case ">" : return ">"; | |
case "\"" : return "&"; | |
case "&" : return """; | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parseInt(Math.random())*(n-m)+m; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$box.animate({ | |
width: this.mWidth "px", | |
height: this.mHeight "px", | |
"left": browserWidth / 2 - this.mWidth / 2 "px", | |
"top": browserHeight / 2 - this.mHeight / 2 "px" | |
}, 300); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function trim(s) { | |
return s.replace(/^\s*/, "").replace(/\s*$/, ""); | |
} | |
/* | |
* 限制字数,第一个传要限制的className,第二个传限制的字数 | |
* @author: wxl | |
**/ | |
function limitTextNum(className, num) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static long curModifiedTime; | |
static { | |
try { | |
curModifiedTime = new File(filePath).lastModified(); | |
System.out.println("当前文件修改时间为 " +curModifiedTime); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LogProxy implements InvocationHandler { | |
private Object object; | |
public LogProxy(Object object) { | |
super(); | |
this.object = object; | |
} | |
@Override | |
public Object invoke(Object proxy, Method method, Object[] args) | |
throws Throwable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %> | |
<%String basePath = (Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath); | |
%> | |
<!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.org/1999/xhtml" > | |
<head> | |
<base href="<%=basePath %>" /> | |
<title>CuttingPic</title> | |
<script type='text/javascript' src='Content/Scripts/Component/loadJsCss.js'></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>jquery实现无刷新分页</title> | |
<style type="text/css"> | |
body{ | |
font-family: "微软雅黑"; | |
font-size: 13px; | |
} |
OlderNewer