How to write native script? in vue

how to write native script? in vue

I am in the component of vue,

<script>
  export default {
    ...
  }
</script>

I have my own native < script > code, as follows:


<script>
    gtel.Button.render({

        env: "sandbox", // sandbox | production
        ...{
            return paypal.request.post(CREATE_URL)
                .then(function(res) {
                    return res.paymentID;
                });
        },
</script>        
        

how can I do this and put my < script > into the component?

Mar.05,2021

can you directly write a method to put your native JS code in it?

Menu