Home > front end >  Script SRC/include these two import js files the way what's the difference
Script SRC/include these two import js files the way what's the difference

Time:10-21

The following code in the
<script SRC="https://bbs.csdn.net/topics/${ctxStatic}/plugins/bootstrapTree patternfly/bootstrap - treeview. Js" type="text/javascript" & gt; </script>
<% @ the include file="/webpage/include/bootstraptable JSP" % & gt;

Script SRC/include these two import js files the way what's the difference

CodePudding user response:

Script SRC is to import js file
Include is a JSP tags, you can import the corresponding resource file, is inserted the other file information resources to the current file (generally more import JSP)

CodePudding user response:

reference 1st floor qybao response:
script SRC is to import js file
Include is a JSP tags, you can import the corresponding resource file, is inserted the other file information resources to the current file (generally more import JSP)


Thank you very much, the former is imported, the latter is inserted, what is the difference between the two?

CodePudding user response:

refer to the second floor eisldkw response:
Quote: refer to 1st floor qybao response:
script SRC is to import js file
Include is a JSP tags, you can import the corresponding resource file, is inserted the other file information resources to the current file (generally more import JSP)


Thank you very much, the former is imported, the latter is inserted, what is the difference between the two?

The former can only be js, the latter are not limited to js, as long as meet the JSP syntax

CodePudding user response:

The include tag will eventually gave birth to the script into the js

CodePudding user response:

xiexie
  • Related