http:⼀⼀localhost⼀test⼀test⼀123456.html 如何用javascript截取123456.html

2025-05-13 23:04:56
推荐回答(2个)
回答1:

var aa="http://localhost/test/test/123456.html";
var arr=aa.split("/");
arr[arr.length-1];//这个就是:123456.html

回答2:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="aspnet.aspx.cs" Inherits="WebApplication1.aspnet" %>





123










初级程序员手打。测试成功。