How to link external javascript file onclick of button

前端 未结 8 1173
旧时难觅i
旧时难觅i 2020-11-29 20:22

The javascript file is there in Public/Scripts/filename.js. I have a template file in template/form.tmpl.html. Root folder contains Public and template folders

I wo

8条回答
  •  臣服心动
    2020-11-29 21:09

    I have to agree with the comments above, that you can't call a file, but you could load a JS file like this, I'm unsure if it answers your question but it may help... oh and I've used a link instead of a button in my example...

    click me
    
    
    

提交回复
热议问题