直接引用string.json里的内容可以采取以下方式:string.json{ "name": "uuuu", "value": "This is a popup with PopupOptions" }.bindPopup(this.handlePopup, { message: getContext(this).resourceManager.getStringSync($r('app.string.uuuu').id), placementOnTop: true, showInSubWindow:false, primaryButton: { value: 'confirm', action: () => { this.handlePopup = !this.handlePopup console.info('confirm Button click') } },
直接引用string.json里的内容可以采取以下方式:
string.json