摘要:
JS去掉字符串首尾前后的一个或多个逗号 rps.replace(/^,+/, '').replace(/,+$/, '') 1.数据类型:null和undefined区别? undefined是指原生类型没有定义,而null是指对象没定义. 2.数组声明:['a',3,'hello',true]; 阅读全文
摘要:
JS去掉字符串首尾前后的一个或多个逗号 rps.replace(/^,+/, '').replace(/,+$/, '') 1.数据类型:null和undefined区别? undefined是指原生类型没有定义,而null是指对象没定义. 2.数组声明:['a',3,'hello',true]; 阅读全文
|