快速获取js数组的最后一项

利用pop()

"/Users/ztc/workspace/createQRcode2/qrImages".split("/").pop()

你可能感兴趣的:(快速获取js数组的最后一项)