前端使用Jscript 獲得選中複選框值並變成,隔開的字符串

var str = $(".ckb:checked").map(function(){return $(this).val()}).get().join(',')this

相關文章
相關標籤/搜索