UNPKG

jsdk-offical

Version:

JSDK is the most comprehensive TypeScript framework, like JDK.

23 lines (22 loc) 600 B
/// <reference path='../../dist/jsdk.d.ts' /> $1('#loadHtml').on('click',()=>{ Dom.loadHTML('html.html', true, { appendTo: '#html', prehandle:(doc)=>{ let nodes = doc.getElementsByTagName('mybutton'); if(nodes) for(let i=0,len = nodes.length;i<len;i++) { let node = nodes[i]; Dom.rename(node, 'button'); } return doc } }).then((url)=>{ JSLogger.info(url) }) }) $1('#loadCss').on('click',()=>{ Loader.css('blue.css').then((url)=>{ JSLogger.info(url) }) })