获取 URL 参数函数
string
const url = 'http://localhost:8888/test.html?name=张三&id=123'; getParam('name', url); // 张三 getParam('test', url); // ''
← type truncate →