且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用jQuery提取HTML页面的压缩

更新时间:2023-12-02 11:36:28

.ajax({ 网址:"Page1.aspx", 类型:发布", 异步:错误, 数据:{"param":"abcd" }, 成功:function(obj){ } });
.ajax({ url: "Page1.aspx", type: "Post", async: false, data: { "param": "abcd" }, success: function(obj) { } });




//HTML




//HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<script language=javascript>
    alert('ggg');
</script>
<body id="bd" bgcolor="#ff9999">
    <form id="form3" runat="server">
    
  <div id="dynamic"> </div>
    <asp:TextBox ID="TextBox1" runat="server">
    <asp:Button ID="Button1" runat="server" Text="Button" />
 <div id="mainremoved" style="width:100%">  This is Home content </div>
    </form>
</body>
</html>


看看以下内容:
jQuery HTML操作 [ jQuery HTML()vs InnerHTML()? [
Take a look at the following:
jQuery HTML Manipulation[^]
and
Jquery HTML() vs InnerHTML()?[^]

Those two links should enable you to solve your problem :)

Best regards
Espen Harlinn


您可以在提取页面之前对其进行过滤.
使用下面的代码,让我知道它是否有效.
You can filter it before extracting the page.
Use below code and let me know if it works or not.
function GetPage() {