I would like to call a javascript function in an external JS file, using the onClick
function on a button in this file, form.tmpl.htm
.
<button type="button" value="Submit" onClick="Call the external js file" >
The javascript file is in Public/Scripts/filename.js
. I have a template file in template/form.tmpl.html
. The root folder contains the Public
and template
folders.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…