跳到主要内容

· 阅读需 1 分钟
fantasticsoul

show hel

提示

Use the power of React to create interactive blog posts.

<button onClick={async function(){
const helMicro = await import('hel-micro');
const lib = await helMicro.preFetchLib('hel-tpl-remote-lib');
alert(lib.num.random(22));
}}>call remote method!(latest version)</button>

<button onClick={async function(){
const helMicro = await import('hel-micro');
const lib = await helMicro.preFetchLib(
'hel-tpl-remote-lib', '2.0.0',
);
alert(lib.num.random(22));
}}>选择版本 2.0.0</button>

<button onClick={async function(){
const helMicro = await import('hel-micro');
const lib = await helMicro.preFetchLib(
'hel-tpl-remote-lib', '2.0.1',
);
alert(lib.num.random(22));
}}>选择版本 2.0.1</button>