直接写死就行了。为什么要获取。
const queryString = "viewlet=%25E8%2585%25AB%25E9%2582%25A6%25E5%258C%2596%25E5%25B1%258F&op=write&ref_c=48330dbe-2251-4f04-a381-ed3873cb585e";
const params = new URLSearchParams(queryString);
const opValue = params.get('op'); // 输出: write
console.log(opValue); // write