获取网页选中的HTML

canca11年前 (2015-01-09)621
function getSelectedContents(){    if (window.getSelection) { //chrome,firefox,opera        var rang…

in与exist , not in与not exist 的区别

canca11年前 (2015-01-09)546
in和existsin 是把外表和内表作hash 连接,而exists是对外表作loop循环,每次loop循环再对内表进行查询。一直以来认为exists比in效率高的说法是不准确的。如果查询的两个表大小相当,那么用in和exists差别不大。如果两个表中一个较小...…