using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Drawing; using System.Drawing.Drawing2D; using System.Net; using System.IO; using KT_Product_Show_V3.Models; using KT_Product_Show_V3.Controllers; using
工作中需要用到,在stackoverflow中找到的,实践证明可用. function decode_base64(s) { var e = {}, i, k, v = [], r = '', w = String.fromCharCode; var n = [ [65, 91], [97, 123], [48, 58], [43, 44], [47, 48] ]; for (z in n) { for (i = n[z][0]; i < n[z][1]; i++) { v.push(w(i))
/* 功能:将中文内容的斜杠和双引号转了,方便保存到lua+ssdb中,从SSDB提取出来组装JSON时就不会出错. 作者:黄海 时间:2015-01-31 */ function jsonencode(str) { var res = str.replace(/\"/g, "\\\""); res = res.replace(/\\/g, "\\\\"); return res; }