var token = sessionStorage.getItem("token") || "";
window.open(`http://47.106.133.91:8080/?token=${token}`)
`http://47.106.133.91:8080/?token=${token}``${token}`?
$
var token = sessionStorage.getItem("token") || "";
window.open(`http://47.106.133.91:8080/?token=${token}`)
`http://47.106.133.91:8080/?token=${token}``${token}`?
$
${token}
indicates the variable token
, which is the use of backquotes and indicates the variable
it is recommended to take a good look at ECMAScript 6
there are many new features
template string for E6
``
${}
it's not so detailed. < del > ~ < / del >
Previous: The problem with iframe
Next: Select all is easy to use, but the separate checkbox is not easy to use, so it can't be ticked.
I look at a html ui project with items such as: var apiserver = window[ apiserver ]; url = apiserver + "filterUrlController getUrlData"; I searched the whole project and couldn t find the value of window [ apiserver ]. How do you un...
want to explain how to make table different colors? is not different. is . <table> <tr> <td width="100">a< td> <td><a>< td> < tr> <tr> ...
the complete page looks like this: : pull up and down can not be pulled, it is useless to set scroll, what is the reason for this? ...
original code: $bars[i].style.top =160 - height + sinTable[(ang + (i * freq)) & 4095] * height + px ; $bars[i].style.height = height2 + px ; but it seems that .style is rare, so I m going to use .css instead: var style={ top:160 - heig...
the effect you need to achieve is to click on a link and add class= "on " to .bofangqi dd div. The code written by is as follows: $(".bofangqi dd").on("click",function(){ $(this).find("div").addClass( on ).si...
F12 sees that ajax has so many request parameters that I can t use most of them. Can I remove such parameters? Don t so many parameters take up bandwidth? ...
$(document).ready(function(){ $(".pageloading").show(); $(window).on("load", function() { $(".pageloading").fadeOut(); }); }); google chrome can, will $( ".pageloading "). FadeOut (); but the safari networ...
this is the appearance that will occur when the facebook hypothetical state does not appear, and will not disappear until the content is released, and the content will be displayed. How do you do that? And he will buy it, not just a piece of film. It...
the details are as follows Zhang San s score is 98, Li Si s score is 65, Wang Wu s score is 75 how to sort by score and show his score and name. Could you tell me how to sort from high to low with JS? Thank you very much. ...
is it because of this thing guys, I took a look at this line of code in jquery weui.js: var offset = container.scrollHeight() - ($(window).height() + scrollTop) the $(window). Height () in gets the window height incorrectly. just change it to ...
as shown in the picture, jquery.form.js has been imported, and then jquery in order, but still reported an error. Ask God for advice ...
in learning sharp jquery, I encountered a problem when I introduced the old version of jquery (version 1.71 in the book) and the latest version of jquery when the structure and content of html were the same. has a total of four check boxes, which work...
the logic for the background to return the json result is Map<String, Object> resultMap = new HashMap<>(); resultMap.put("userType", userType); resultMap.put("phone", phone); resultMap.put("channel&q...
trouble everyone to help again. I used to be a designer. Not long after I came into contact with the front end, I thanked you for your help with the dynamically generated problems last time. This time the problem is simply a nightmare for a rookie like ...
under the guidance of others, modified the problem, before sent the wrong question and did not express clearly, the code is as follows. The left side of the colon can be written like this [ result$ {I} AV ]. The number is obtained by the index, but the ...
? jquery,: ?jquery ...
var url = x.php ; var get = add_x ; switch(url) { case x.php : $("-sharpmenu").show(); break; } above is only to judge what url is and what to do but can I add get judgment? Do the same thing! is the same as $( "- sharpmenu...
for example, 4.1-8.2 is 4 months and 2 days ...
how should I write this path? I want to jump to the specified controller, and the js file is separate, not unloading the in the view. ...
http: js.jirengu.com godaf 1....