How to link external javascript file onclick of button

前端 未结 8 1169
旧时难觅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:07

    it seems like, it is impossible to call to a function in an external js file (test on chrome Version 63.0.3239.132). I tried it in many ways but it can't. I have to use the event listener.

提交回复
热议问题