所以我希望能够在字符串的最后一个反斜杠之后添加一个字符串
示例:
string1 = C:\Users\Admin\OneDrive\Desktop\Text File.txt
string2 = "My"
我想在string2
的最后一个反斜杠之后添加string1
result = C:\Users\Admin\OneDrive\Desktop\My Text File.txt
^
答案 0 :(得分:3)
看看$('#delete').click(function() {
$(this).closest('tr').children().empty();
$(this).closest('tr').css({display: "hidden"});//to visually remove the line (and not have an empty line)
});
中的这两个函数
请下次再考虑考虑阅读关于如何在SO上提出问题的article