Watch 1 Star 0 Fork 0

netnr / jcuteJavaScriptMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Clone or download
index.html 5.32 KB
Copy Edit Web IDE Raw Blame History
netnr authored 2019-03-08 09:49 . update css
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="favicon.svg" rel="Shortcut Icon" type="image/svg" />
<title>jCute JavaScript Library</title>
<meta name="keywords" content="jCute,netnr" />
<meta name="description" content="jCute JavaScript Library,netnr" />
<link href="https://lib.baomitu.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://lib.baomitu.com/github-markdown-css/3.0.1/github-markdown.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 my-4 markdown-body">
<h1>jCute</h1>
<blockquote>
<p>JavaScript Library</p>
</blockquote>
<hr>
<h2>jCute</h2>
<h3><a href="view?jcute.all.js">jCute.all.js</a></h3>
<hr>
<h2>Module</h2>
<h3><a href="view?jcute.ajax.js">jCute.ajax.js</a></h3>
<pre><code class="language-js"><span class="hljs-comment">/**
* ajax请求
* @param {JQuery.AjaxSettings} settings 类似于jQuery传参
*
* @param {string} url 请求地址
* @param {string} type 请求方式,默认:GET
* @param {boolean} async 异步请求,默认:true
* @param {string} data 发送内容,字符串 | 键值对 | FormData
* @param {string} contentType 内容编码类型,默认:application/x-www-form-urlencoded
* @param {string} dataType 返回类型:json/xml/text,默认:text
* @param {string} headers 消息头,键值对
* @param {string} timeout 超时,单位:毫秒,默认设置超时
* @param {string} progress function(p){ },FormData上传进度回调方法 p:0-100
* @param {string} success function(data,status,xhr){ },成功回调方法,data:返回数据,
* @param {string} error function(xhr,status){ },错误回调方法
* @param {string} complete:function(xhr,status){ },完成回调
*/</span>
jCute.ajax(settings)
</code></pre>
<hr>
<h3><a href="view?jcute.convert.js">jCute.convert.js</a></h3>
<pre><code class="language-js"><span class="hljs-comment">/**
* Unicode编码
* @param {string} str 字符串
*/</span>
jCute.toUnicode(str)
<span class="hljs-comment">/**
* Unicode解码
* @param {string} str 字符串
*/</span>
jCute.toUnicodeUn(str)
<span class="hljs-comment">/**
* Ascii编码
* @param {string} str 字符串
*/</span>
jCute.toAscii(str)
<span class="hljs-comment">/**
* Ascii解码
* @param {string} str 字符串
*/</span>
jCute.toAsciiUn(str)
</code></pre>
<hr>
<h3><a href="view?jcute.cookie.js">jCute.cookie.js</a></h3>
<pre><code class="language-js"><span class="hljs-comment">/**
* Cookie获取、设置、删除
* @param {string} key 键
* @param {string} value 值
* @param {number} time 过期时间(默认不指定过期时间),单位:毫秒,小于0删除
*/</span>
jCute.cookie(key, value, time)
</code></pre>
<hr>
<h3><a href="view?jcute.load.js">jCute.load.js</a></h3>
<pre><code class="language-js"><span class="hljs-comment">/**
* 载入js脚本,并回调
* @param {string} src js脚本路径
* @param {function} success 载入成功回调方法
*/</span>
jCute.getScript(src, success)
<span class="hljs-comment">/**
* 载入css样式
* @param {string} href css样式路径
*/</span>
jCute.getStyle(href)
</code></pre>
<hr>
<h3><a href="view?jcute.support.js">jCute.support.js</a></h3>
<pre><code class="language-js"><span class="hljs-comment">/**
* IE8-
*/</span>
jCute.oldIE()
<span class="hljs-comment">/**
* 移除空字符
* @param {string} str 字符串
*/</span>
jCute.trim(str)
<span class="hljs-comment">/**
* event
* @param {event} e 事件流
*/</span>
jCute.event(e)
<span class="hljs-comment">/**
* target
* @param {event} e 事件流
*/</span>
jCute.target(e)
<span class="hljs-comment">/**
* 阻止事件冒泡
* @param {event} e 事件流
*/</span>
jCute.stopEvent(e)
<span class="hljs-comment">/**
* 阻止浏览器默认行为
* @param {event} e 事件流
*/</span>
jCute.stopDefault(e)
<span class="hljs-comment">/**
* 按键ASCII值
* @param {event} e 事件流
*/</span>
jCute.key(e)
<span class="hljs-comment">/**
* 检测类型
* @param {any} obj 对象
*/</span>
jCute.type(obj)
</code></pre>
<hr>
<h3><a href="view?jcute.xml.js">jCute.xml.js</a></h3>
<pre><code class="language-js"><span class="hljs-comment">/**
* 解析字符串为xml
* @param {string} data 字符串
*/</span>
jCute.parseXML(data)
<span class="hljs-comment">/**
* XML转字符串
* @param {object} xmlDoc XML对象
*/</span>
jCute.XMLSerializer(xmlDoc)
</code></pre>
<h3>Source</h3>
<ul>
<li><a href="https://github.com/netnr/jcute">https://github.com/netnr/jcute</a></li>
<li><a href="https://gitee.com/netnr/jcute">https://gitee.com/netnr/jcute</a></li>
</ul>
</div>
</div>
</div>
<script src="src/jCute.all.js"></script>
</body>
</html>

Comment ( 0 )

You need to Sign in for post a comment

Help Search