如何从245px删除“px”
要在245中转换245px,请运行:
parseInt('245px', 10);
它只保留前导数字并丢弃所有其余数字。
链接
优秀文章:https://www.itranslater.com/qa/details/2129505719870292992
要在245中转换245px,请运行:
parseInt('245px', 10);
它只保留前导数字并丢弃所有其余数字。
优秀文章:https://www.itranslater.com/qa/details/2129505719870292992