📌  相关文章
📜  js 拆分最后一次出现 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.336000             🧑  作者: Mango

代码示例1
var lastIndex = src.lastIndexOf('.');

  // Add the string before the last .
  // Return updated string, this will update the src attribute value
  return src.substr(0, lastIndex) + '-fx' + src.substr(lastIndex);