当前位置: 首页 > 网络学院 > 客户端脚本教程 > JavaScript > JavaScript strike() 方法
The strike() method is used to display a string with a strikethrough.
strike()方法用于将为字符串添加一条删除线
stringObject.strike() |
In this example "Hello world!" will be displayed with a line trough it:
在本例中,"Hello world!"将被添加一条删除线:
<script type="text/javascript"> var str="Hello world!" </script> |
strike()
How to use strike() to display a string with a strikethrough.
如何用strike()来为一个字符串添加删除线
您看完这篇文章的心情是: <已有0人发表看法> | |||||||
0![]() | 0![]() | 0![]() | 0![]() | 0![]() | 0![]() | 0![]() | 0![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
吃惊 | 欠揍 | 支持 | 很棒 | 一般 | 搞笑 | 扯淡 | 不解 |