There is a paragraph in the nail development document that introduces a method using script, but I don't know how to introduce it in ts.

there is a paragraph in the nailing development document that introduces a method using script, but I don"t know how to introduce it in ts

.

clipboard.png

clipboard.png
requires that this method be introduced in advance, but if introduced under the head tag, I cannot use it in another component

Mar.17,2021

you can consider import this js, in the corresponding component, but Typescript is not allowed to import js by default. Configure allowjs in tsconfig

.
Menu