Kim VamPa

문자열 자르기(자브스크립트, substring) 본문

코드저장

문자열 자르기(자브스크립트, substring)

Kim VamPa 2020. 2. 19. 01:17
728x90
반응형

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
 
                                            $(document).ready(function(){
                                                var str = $("#td_authorIntro${i}").text().substring(0,80);
                                                $("#td_authorIntro${i}").html(str);
                                            });
 
 
                                             (function(){
                                                 var str = $("#td_authorIntro${i}").text().substring(0,80);
                                                    $("#td_authorIntro${i}").html(str+"..."); 
                                             })();
 
 
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs
728x90
반응형
Comments