The problem of adding the relative path of the parent page js and jsp to the child page

    The problem of adding the relative path of the parent page js and jsp to the child page

The embedded page can directly use the js of the large page

1.jsp

 

<div id="w"></div>

 

2.jsp can use js of 1.jsp after embedding 1.jsp

 

jsp path auto join problem

The Road King in jsp is automatically added to the project directory. Because the jsp does not resolve to the beginning of http://, or ${project path}, etc., it is thought to be a relative path, and it will be added automatically at this time.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326512503&siteId=291194637