Example #1
0
        public static JSScriptItem Parse(string content)
        {
            int          index = content.IndexOf("(", StringComparison.Ordinal);
            var          name  = content.Substring(0, index);
            JSScriptItem item  = new JSScriptItem(name);
            var          para  = content.Substring(index + 1, content.Length - 3 - index);

            item.Params = para.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(t => t.Trim().Trim('\"')).ToList();
            item.loadItemName();
            return(item);
        }