17 lines
336 B
TypeScript
17 lines
336 B
TypeScript
/// <reference path="../doc.d.ts" />
|
|
|
|
class Provider {
|
|
async test() {
|
|
try {
|
|
const data = await fetch("https://cryptojs.gitbook.io/docs")
|
|
|
|
const $ = LoadDoc(await data.text())
|
|
|
|
console.log($("header h1").text())
|
|
}
|
|
catch (e) {
|
|
console.error(e)
|
|
}
|
|
}
|
|
}
|