一般函数的定义
function name( xx )
{ ....}
含有返回值得函数定义
function name( xx )
{.return xx;.}
通过TAG的字符串类型进行判断
switch(tag){
case 'A':
break;
case 'B':
break;
default:
xxx;
}
一般函数的定义
function name( xx )
{ ....}
含有返回值得函数定义
function name( xx )
{.return xx;.}
通过TAG的字符串类型进行判断
switch(tag){
case 'A':
break;
case 'B':
break;
default:
xxx;
}