interface AjaxPara { url : string ; callback ( err , res ) : void ; } export async function ajax ( para ) { try { let tmp = await fetch ( para . url ) ; let response = await tmp . arrayBuffer ( ) ; para . callback ( null , response ) ; } catch ( e ) { para . callback ( e , new ArrayBuffer ( 0 ) ) ; } }