$(function (){
if (window.location.href.includes('?')) { if (window.location.href.split('?')[1].split('=')[0] === 'bank') { var bank = window.location.href.split('?')[1].split('=')[1]; $('#selbank').text(decodeURI(bank)); } } })本文共 278 字,大约阅读时间需要 1 分钟。
$(function (){
if (window.location.href.includes('?')) { if (window.location.href.split('?')[1].split('=')[0] === 'bank') { var bank = window.location.href.split('?')[1].split('=')[1]; $('#selbank').text(decodeURI(bank)); } } })转载于:https://www.cnblogs.com/webzwf/p/5941535.html