7万
861
32万
论坛元老
这种方法会导致一个字符串是斜体,就好像它是在<i>标签 语法
string.italics( )
下面是参数的详细信息:
返回值:
例子:
<html> <head> <title>JavaScript String italics() Method</title> </head> <body> <script type="text/javascript"> var str = new String("Hello world"); alert(str.italics( 3 )); </script> </body> </html>
这将产生以下结果:
<i>Hello world</i>
使用道具 举报
1
2万
55
注册会员
207
中级会员
4
58
0
115
29
194
6
1万
174
182
425
3
163
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|网站地图|源码论坛 ( 海外版 )
GMT+8, 2025-2-7 21:02 , Processed in 0.092550 second(s), 24 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.