日期:2014-05-17 浏览次数:20935 次
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="gb2312" />
        <title></title>
        <meta content="淘宝网返现,返利" name="keywords" />
    </head>
    <body>
        <script>
            document.getElementsByName("keywords")[0].content = 123;
            alert( document.getElementsByName("keywords")[0].content );
        </script>    
    </body>
</html>
------解决方案--------------------
怎么会不对。。。那你alert一下$("meta[name='description']").attr("content");
看jquery找到你的meta了吗
------解决方案--------------------