在data-自定义属性里写函数

H5的data-自定义属性里面是字符串类型,如果写上函数的话是不被识别的,可以使用eval;


这里可以使用eval:


猜你喜欢

转载自blog.csdn.net/zheng19921992/article/details/79629219