简体   繁体   中英

jQuery call function from external JS file

I want to call a function from my master .js file - from within my php page. Is this possible?

<script type="text/javascript">
   functionName(); //calling function from master.js file
</script>

Doesn't seem to work.

只要首先加载外部脚本并将“ functionName()”附加到全局作用域即可

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM