wordpress下javascript获取当前页面的名称
Published
2022-08-15
浏览次数 : 213

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