Commit 5f5aebaf by wangxing

代码整理

parent bb97fd42
......@@ -1916,7 +1916,6 @@
}
//输出差集 temp:待选数据 temp1:数据库查出的数据
var diff = array_difference(temp, temp1);
console.log(diff)
for (var i = 0; i < diff.length; i++) {
var _html_li = '<li><div rel="' + diff[i].split("#")[0] + '" name="' + diff[i].split("#")[1] + '">' + diff[i].split("#")[1] + '</div></li>';
$('#waiting_ul').append(_html_li);
......@@ -1981,7 +1980,6 @@
//已选数据和待选数据的差集
function array_difference(temp, temp1) { // 差集 a - b
var clone = temp.slice(0);
console.log("clone" + clone)
for (var i = 0; i < temp1.length; i++) {
var temp0 = temp1[i];
for (var j = 0; j < clone.length; j++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment