dollar-js
Version:
A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)
35 lines (33 loc) • 1.22 kB
HTML
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DollarJS API</title>
<link href="index.css" rel="stylesheet" />
</head>
<body>
<div class="github"><a href="https://github.com/seebigs/dollar-js" target="_blank" title="View project on Github.com">{{githubMark}}</a></div>
<h1>DollarJS API</h1>
<div class="link-btns">
<a href="../selectors">Selectors</a>
<a href="../types">Types</a>
<a href="../limitations">Limitations</a>
</div>
<div class="as-array">
<h3>DollarJS can be used like an Array</h3>
<pre>$('div')[0]</pre>
<pre>$('div').length</pre>
<pre>$('div').forEach(function(elem){ console.log(elem); })</pre>
<pre>$('div').indexOf(elem)</pre>
<pre>$('div').push(elem)</pre>
<pre>$('div').pop()</pre>
<pre>$('div').unshift(elem)</pre>
<pre>$('div').shift()</pre>
<pre>$('div').slice(1, 3)</pre>
</div>
<div>{{docs}}</div>
<script src="../gatag.js"></script>
<script src="https://raw.githubusercontent.com/seebigs/dollar-js/master/prebuilt/dollar.js"></script>
<script src="../common.js"></script>
</body>
</html>