How react jumps to the a.html page, it still opens the default page.

how to open a new page by clicking a button in the page of

react. This new page is a html page under the current project.
window.open ("file path of html") cannot be realized. Click on the route to change to localhost:3000/a.html-sharp/, and open the default page. How to directly jump to page an and display the content of page a?

clipboard.png

Apr.03,2021

Oh, my God, if you use react,vue, it's like if you are developing a web page or not., html javascript has left all the basics behind

.

Let's review how to open a page
in a browser. The easiest way a tag href points to the page you want to open is url,
url,. The most important thing to say is three sides, not "the file path of html."
for example, I have a web page called b.html in the / a directory of the server, and its url is http://wwww.xxx.xx/a/b.html
. Whether you are hyperlink or window.open (" http://wwww.xxx.xx/a/b.html") can be opened

)

so, your question is that you need to first determine what the url of html under your project is

.

upstairs you haven't solved the landlord's problem either. You can put the static html under public, such as look_video.html, and then use the a tag href=/look_video.html.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5d004-59c7f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5d004-59c7f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?