最佳答案
我有一个字符串“-123445”。是否可以从字符串中删除“-”字符?
我试过以下方法,但没有效果:
$mylabel.text("-123456");
$mylabel.text().replace('-', '');