C# JavaScript – Encode Decode

JS 部份

var encodeString = escape("It's me!"); //output It%27s%20me%21
var decodeString = unescape(encodeString); //output It's me!

C# 部份

string encodeString = Uri.EscapeDataString("string"); //output It%27s%20me%21
string decodeString = Uri.UnescapeDataString("encodeString"); //output It's me!

開始在上面輸入您的搜索詞,然後按回車進行搜索。按ESC取消。

返回頂部