写一个js函数,检测url路径中,是否包含下列数组whitelist 中任意一项,包含返回true,不包含返回false
const a = "http://172.30.404.37/preview/onlinePreview"
const b = "http://172.30.404.37/preview/onlinePreview"
const c = "http://172.30.104.34/about"
const whitelist = ['preview/onlinePreview','http://172.30.404.37',"http://172.30.104.34/about" ];