| AkCommonUrlReplace Method (String, String, Object, Boolean) |
替换 url 查询字符串部分的若干键值并返回新的 url 字符串
如果要替换的键并不存在,则添加进去
Namespace: Appkit.CommonAssembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static string UrlReplace(
string url,
string[] keyNames,
Object[] keyValues,
bool encode
)
Parameters
- url
- Type: SystemString
url - keyNames
- Type: SystemString
键名称集合 - keyValues
- Type: SystemObject
键值集合 - encode
- Type: SystemBoolean
是否编码
Return Value
Type:
String替换处理后的新字符串
See Also