Skip to content

Instantly share code, notes, and snippets.

View aa65535's full-sized avatar
💭
I may be slow to respond.

Jian Chang aa65535

💭
I may be slow to respond.
View GitHub Profile
@aa65535
aa65535 / Node.prototype.js
Last active December 31, 2015 11:49
仿jQuery的DOM操作方法,只有基本的操作。
// 所有方法都在最后返回当前元素(包括appendTo和prependTo)
// 可以使用链式写法
// append方法 向匹配的元素内部追加内容
// 参数可以是字符串或者是使用createElement()方法创建的DOM对象
Node.prototype.append = function(ele) {
if (typeof ele === 'string') {
var t = document.createElement('div');
t.innerHTML = ele;
while (t.firstChild) {
@aa65535
aa65535 / AdmX.bat
Last active November 18, 2016 17:37
一个使用Aria2下载迅雷离线的批处理, 使用前需要将BAT文件编码改为ANSI
:: AdmX - Aria2 Download Manager for Xunlei
:: Release by aa65535
:: Time: 2013-12-13 03:08:57
:: External Command: aria2c.exe, wfr.exe
@echo off
title Aria2& color f3& mode con: cols=80 lines=8& setlocal enabledelayedexpansion
:: 检查Aria2是否可用
aria2c& cls
if !errorlevel! gtr 1 echo aria2c.exe not found!& pause>nul& exit