我正在努力将类名(只有数字11和22)作为函数参数传递。代码是:
document.querySelector(".show-11-22,.show-11-33,.show-33-55,");
我想将类(.show-**11**-**22**,.show-**11**-**33**,.show-**33**-**55**)
中的数字分别传递给函数参数数字和 size
function myData(number,size){
//some code
}
myData(number,size)
//so that it would be like
myData(11,22)
myData(11,33)
myData(33,55)