withBody

withBody<T>(html: string, blockFn: T): T

参数

html

HTML which should be inserted into body of the document.

blockFn

function to wrap. The function can return promise or be async.

返回值

T