0
var arr = ["THYROID","CARDIAC","CARDIAC,DIABETES","METABOLIC,ARTHRITIS","RENAL DISEASES,DIABETES","LIVER DISEASES,HEPATITIS","LIVER DISEASES,CANCER,METABOLIC","LIVER DISEASES,HEPATITIS,ARTHRITIS,METABOLIC"]
以上是我的代碼, 我需要使用Javascript從此數組中獲取唯一值。從數組中獲取唯一值
一樣,我的期望是: 如果我要獨特價值,就應該讓我:
var arr = ["THYROID","CARDIAC","DIABETES","METABOLIC","RENAL DISEASES","LIVER DISEASES,"CANCER",ARTHRITIS","HEPATITIS"]
尼斯思想.. + 1 –