[英]Displaying jsp page on same location using javascript
How to display jsp page on same location using javascript.I tried below ways,but no luck:如何使用 javascript 在同一位置显示 jsp 页面。我尝试了以下方法,但没有运气:
location.href='./start.do';
self.location.href='./start.do';
chaitu柴土
Perhaps you mean: window.location.assign('start.do');
也许你的意思是: window.location.assign('start.do');
Otherwise I'm not clear on what the question is asking.否则我不清楚问题在问什么。 I'm assuming you mean that you want to load a JSP page whose location is in the same folder as the current page (in which case, no need to use ./
in the location).我假设您的意思是要加载 JSP 页面,其位置与当前页面位于同一文件夹中(在这种情况下,无需在该位置使用./
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.