var arr1 = ["", "100", "120", "125", "125", "130", "130"];
var arr2 = ["", "120", "125", "125", "130"];
请问如何求得两个数组之差?使得新数组为 arr3 = ["100","130"]
或则转化为处理两个字符串的问题:
var p1 = 100, 120, 125, 125, 130, 130;
var p2 = 120, 125, 125, 130;
求得两个字符串之差?使得新字符串为 p3 = 100,130;
补充: 要求根据元素(字符)个数相减
不说废话,直接上代码