本帖最后由 zxwdt618116 于 2014-06-05 11:05:11 编辑

解决方案 »

  1.   

    你是要做插件还是搞毛?插件自己找chrome如何开发插件来做,这个不是简单的js就搞定的<input type="text" id="sw" /><script>
        var input = document.createElement('input');
        input.type = 'text';
        input.value='我是插入的text'
        var sw = document.getElementById('sw');
        if (sw)
            sw.parentNode.insertBefore(input, sw);
    </script>
      

  2.   

    非常感谢版主大侠!  不是做插件, 就是弄个给chrome用的"脚本",  chrome可以简单把js代码弄成user.js后缀直接拖进chrome就可以用的.很方便
    这个我试试.再摸一下. 非常感谢!