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
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