📜  angular js 解析 json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:30.304000             🧑  作者: Mango

代码示例2
$scope.parseItem = function(string)
        {
            var newString = string.replace(/['\']/g,'');
            var jsonFormated = JSON.parse(newString);
            return jsonFormated.Message;
        }
//pass the single element