this is the code. When I click on the switch language section, I have to request a new English menu again.
getAgent () is the function for me to request the English menu, but there is still some data that must be refreshed to get
no matter I choose
window.location.reload (true);.
doesn"t work before or after getAgent (). I just want to refresh the page after the getAgent () function has been executed. Thank you