3

testing()webview成功加载url后如何调用该方法?

  <template>
        <web-view :source="{uri:'https://www.google.com'}" />
    </template>

    <script>
    import { WebView } from "react-native-webview";

    export default {
      name: "webview",
        components: {
        "web-view": WebView
      },
      methods:{
        testing(){
           console.log("something")
        }
      }
    };

    </script>
4

0 回答 0