/*********************************************************/
//Template Method Define
function Template_Parse(name)
{
if(this[name]==null)
return "";
var reg = new RegExp("{(\\w*)}","ig");
var str = new String(this[name]);
var arr = str.match(reg);
var i;
if(arr != null)
for(i=0;i<arr.length;i++)
{
key = arr[i].slice(1,-1);
reg = new RegExp(arr[i],"ig");
if(this[key]!=null)
str = str.replace(reg,this[key]);
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 下一页