UNPKG

para-bridge-demo

Version:

a bridge api for js-ios/andriod rest

27 lines (24 loc) 499 B
``` tsx interface ISetWebappCacheParam { projectTag: string; setMap: { [index: string]: string; }; } interface ISetWebappCacheResult { // 状态 0:不支持 | 1:成功 status: '0' | '1'; } private setWebviewCache = () => { setWebviewCache({ projectTag: 'test_project', setMap: { key1: 'value1', key2: 'value2', key3: 'value3', keynum1: '1', keynum2: '2', }, }).then(result => { alert(result); }).catch(e => { alert(JSON.stringify(e)); }); } ```