wordpress下javascript获取当前页面的名称

Published
August 15, 2022
浏览次数 :  1

//只有在wordpress里才能获取到
const queryString = window.location.search;
				const urlParams = new URLSearchParams(queryString);
				const pages = urlParams.get('page');

Top