iframe中的javascript如何与dart通信

时间:2019-11-27 07:15:05

标签: flutter-web

ui.platformViewRegistry.registerViewFactory(
  'subpage',
        (int viewId) => IFrameElement()
      ..src = 'https://127.0.0.1/pages/index.html'
      ..style.border = 'none');
return HtmlElementView(viewType: 'subpage');

index.html中的javascript如何与dart通信?

0 个答案:

没有答案