Tal*_*lon 22 javascript string
我在Javascript中有这样的字符串:
string = '@usernameWhats on your mind?'
Run Code Online (Sandbox Code Playgroud)
我需要摆脱'Whats on your mind?'字符串.
我该怎么办?
jon*_*ohn 100
var new_string = string.replace('Whats on your mind?', '');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
51035 次 |
| 最近记录: |