本正则来自jquery dataAttr源码:
var rmultiDash = /([A-Z])/g; //-A-B-C-D "ABCD".replace(rmultiDash,"-$1"); //get-Data "getData".replace(rmultiDash,"-$1");
本正则来自jquery dataAttr源码:
var rmultiDash = /([A-Z])/g; //-A-B-C-D "ABCD".replace(rmultiDash,"-$1"); //get-Data "getData".replace(rmultiDash,"-$1");