我想知道如何在"#"之后删除所有字符串部分.例如,如果我有以后example.com/hello#item1如何删除所有characteres #和#字符呢?
example.com/hello#item1
#
javascript string
javascript ×1
string ×1