/* * @Author: 陶秋峰 * @Date: 2016-01-08 07:53:27 * @Last Modified by: 陶秋峰 * @Last Modified time: 2016-01-08 08:50:17 * @CopyRight 蛮蛮工作室 */ import global from './global'; let win: Window = global; let doc = win.document; export function by_id(id: string | HTMLElement): HTMLElement{ return ((typeof id == "string") ? doc.getElementById(id) : id) || null; // DOMNode }