标签: javascript display
var id = "YuvalW"; var c = id.substr(id.length - 1); alert(c);
我想只显示'Yuval'而不显示'W'--- 我怎么能这样做?
答案 0 :(得分:0)
var id = "YuvalW"; var c = id.substr(0, id.length - 1); alert(c);