复制代码
<script>
function csubstr(str,len){
if(str.length>10){
return str.substring(0,len)+”…”;
}else{
return str;
}
}
</script>
<div ><script>document.write(csubstr(“aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa”,10));</script></div>
复制代码
<script>
function csubstr(str,len){
if(str.length>10){
return str.substring(0,len)+”…”;
}else{
return str;
}
}
</script>
<div ><script>document.write(csubstr(“aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa”,10));</script></div>

2023-03-07
0万阅读

2023-02-27
0万阅读

2023-02-12
9万阅读

2023-02-11
3万阅读

2023-02-11
8万阅读

2023-01-30
9万阅读

2023-01-18
3万阅读

2023-01-08
4万阅读

2023-01-07
18万阅读

2023-01-07
3万阅读

2023-03-07
0万阅读

2023-02-27
0万阅读

2023-02-12
9万阅读

2023-02-11
3万阅读

2023-02-11
8万阅读

2023-01-30
9万阅读

2023-01-18
3万阅读

2023-01-08
4万阅读

2023-01-07
18万阅读

2023-01-07
3万阅读