不足9位数 补0

var id:String = "000000000" + msg.params[1];

var str:String = id.substr(-9, 9);

原文地址:https://www.cnblogs.com/602147629/p/4898664.html