给你一个好工具   http://www.miniui.com/demo/

解决方案 »

  1.   

    给你一个好工具   http://www.miniui.com/demo/
    很好的jQuery工具,这是网页版的,感觉方便点
      

  2.   


    <html>
    <head>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0-rc1.js"></script></head>
    <body>
    <div class='a'></div>
    <script type="text/javascript">  
        var div = document.createElement('div');
        div.innerHTML = "ccc";
        $(".a").append(div);
    </script>
    </body></html>
      

  3.   

    其他代码就不写了$(function(){
        $("<div>ccc</div>").appendTo(".a");
    });
      

  4.   

    ccc应该是变动的把,给你个参考<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0-rc1.js"></script>
    <script type="text/javascript">
    $(function(){
    $('.a').html('<div>'+$('.a').text()+'</div>');

    })
    </script>
    </head><body>
    <div class='a'>ccc</div>
    </body>
    </html>
      

  5.   

    shenhuaxb258给的基本可行,如果是内层还有元素,就用$('.a').html()