数码资讯
javascript字符串对象常用方法的简明版本
var a =abcdefggdefg32asdf38 ; document.write(原始:++) document.write(大胆:+ a.bold()+); document.write(大:+大()+); document.write(斜体:+ a.italics()+); docume
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
var a =abcdefggdefg32asdf38 ;
document.write(原始:++)
document.write(大胆:+ a.bold()+);
document.write(大:+大()+);
document.write(斜体:+ a.italics()+);
document.write(删除线+ a.strike()+);
document.write(字体大小:a.fontsize +(10)+ );
document.write(字体颜色:+ a.fontcolor(# FF0000)+ );
document.write(上标:+ a.sup()+);
document.write(下标:+ a.sub()+);
document.write(大写:+ a.touppercase()+);
document.write(大写:+ a.tolowercase()+);
document.write(返回索引字符:a.charat +(3)+ ); / /这里是D
document.write(收益指数:+ a.indexof(F)+); / /这里应该是5
document.write(回报指数(反向查找):+ a.lastindexof(F)+); / /这里应该是9
document.write(搜索字符串:+ a.search(F)+); / /这里是5,用同样的指标
document.write(替换字符串:+ a.replace(
document.write(返回的字符串:+ a.slice(1,3)+ ); / / BC应该返回从1到3,指数1弦
document.write(拆分字符串:+ a.split(D)(ToString)+ ); / / D为分隔符的字符串分割,返回一个数组
document.write(返回的字符串:+ a.substr(1,2)+ ); / /返回字符串,起始1,长度2,这里是公元前
document.write(返回的字符串:+ a.substring(1,3)+ ); / /层(相同的),并返回指数3 1 1弦
(文件。写+ a.match( / D /)+ ); / /返回正常的匹配,匹配的结果,这是32
document.write(原始:++)
document.write(大胆:+ a.bold()+);
document.write(大:+大()+);
document.write(斜体:+ a.italics()+);
document.write(删除线+ a.strike()+);
document.write(字体大小:a.fontsize +(10)+ );
document.write(字体颜色:+ a.fontcolor(# FF0000)+ );
document.write(上标:+ a.sup()+);
document.write(下标:+ a.sub()+);
document.write(大写:+ a.touppercase()+);
document.write(大写:+ a.tolowercase()+);
document.write(返回索引字符:a.charat +(3)+ ); / /这里是D
document.write(收益指数:+ a.indexof(F)+); / /这里应该是5
document.write(回报指数(反向查找):+ a.lastindexof(F)+); / /这里应该是9
document.write(搜索字符串:+ a.search(F)+); / /这里是5,用同样的指标
document.write(替换字符串:+ a.replace(
document.write(返回的字符串:+ a.slice(1,3)+ ); / / BC应该返回从1到3,指数1弦
document.write(拆分字符串:+ a.split(D)(ToString)+ ); / / D为分隔符的字符串分割,返回一个数组
document.write(返回的字符串:+ a.substr(1,2)+ ); / /返回字符串,起始1,长度2,这里是公元前
document.write(返回的字符串:+ a.substring(1,3)+ ); / /层(相同的),并返回指数3 1 1弦
(文件。写+ a.match( / D /)+ ); / /返回正常的匹配,匹配的结果,这是32
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。