var str = new Array();
str[0] = '
'.replace('{0}', 'domainid');
str[1] = 'domainname';
str[2] = ''.replace('{0}', 'domainid');
str[3] = '';
alert(str.join(''));
//
// 示例2
//
var str2 = [
'
'.replace('{0}', 'domainid'),
'domainname',
''.replace('{0}', 'domainid'),
''
];
alert(str2.join(''));