Home > Back-end >  SpringBoot Thymeleaf: how to open a new window, and the value in the past?
SpringBoot Thymeleaf: how to open a new window, and the value in the past?

Time:09-22

After the effect of implementation is: click the play opens a special window play music, like qq music that kind of feeling, and then want to hand in the past, the object of music new page with th: each receiving data, such as it should be how to implement?
Checked the before play there with & lt; A href="https://bbs.csdn.net/free? Music=${music} "onclick=" window. The open (enclosing href); Return false "& gt; , but found no response after click the play, there is a problem?

CodePudding user response:

You can directly call a controller and then to bring the id value of music to, the controller receives the music in the id, then the music object found out, on the model, the page jump, jump page is what you play music, and then in the page to obtain the model of the value of music, and then put the address of the music in player with respect to OK.

CodePudding user response:

1. The problem with springboot + thymeleaf had nothing to do, it is purely a question of HTML and js
2. This does not need to js, only need to give a label and a target attribute
CodePudding user response:


Rumlee
Bbs7
1. The problem with springboot + thymeleaf had nothing to do, it is purely a question of HTML and js
2. This does not need to js, only need to give a label and a target attribute
  • Related