zoukankan      html  css  js  c++  java
  • jquery ajax 返回数据时 ff正常,ie接受到数据但是显示不了

    用的方法是$("#id").html(data),但是IE却没有显示成功,ff下没问题?为何

    代码
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2 
     3 <html xmlns="http://www.w3.org/1999/xhtml" >
     4 <head>
     5     <title></title>
     6     <script type="text/javascript" src="Inc/Js/jquery.js"></script>
     7     <script type="text/javascript" language="javascript">
     8         $(document).ready(
     9                     function JqueryWithAnchor() {
    10                         var divContent = $("#divContent");
    11                         var anchor = "<a href=\"#\">廊坊站<a>";
    12                         divContent.html(anchor);
    13                     }
    14         );
    15 
    16     </script>
    17 </head>
    18 <body>
    19     <form id="form1" runat="server">
    20     <div>
    21     <div id="divContent">
    22     </div>
    23     
    24     </div>
    25     </form>
    26 </body>
    27 </html>
    28 
    29 
  • 相关阅读:
    2020.12.15
    2020.12.14
    2020.12.13
    2020.12.11
    2020.12.10
    语音合成标记语言(SSML)
    Skyline查询
    win10 VMware 安装 Linux 虚拟机
    图像梯度计算
    Harris Corner Detection
  • 原文地址:https://www.cnblogs.com/applesuch5/p/1908451.html
Copyright © 2011-2022 走看看