let name = "Alice"; let greeting = `Hello, ${name}! Welcome to our website.`; console.log(greeting); // 输出: Hello, Alice! Welcome to our website. function getGreeting(name) { return `Hello, ${name}!`; } let userName = "Alice"; let message = `Today, ${getGreeting(userName)} How are you?`; console.log(message); // 输出: Today, Hello, Alice! How are you? // 假设queryForm.value和token.value已经定义并且包含你需要的数据 const params = { query: queryForm.value.query, pageNum: queryForm.value.pageNum, pageSize: queryForm.value.pageSize, deptId: queryForm.value.deptId, // 如果需要传递state,则取消下面的注释 state: queryForm.value.state, token: token.value }; // 使用URLSearchParams来构建查询字符串 const queryString = new URLSearchParams(params).toString(); // 现在你可以使用这个查询字符串来构建你的URL location.href = `${getServerUrl()}api/hit/down/excel?${queryString}`;
站长微信:xiaomao0055
站长QQ:14496453