expect('football').to.match(^/foo/);报错“unexpected token ^”,
我改为expect('football').to.match(/foo/);通过了。
请问第一个写法为什么不对啊?
看得出你刚开始学,代码格式规范问题,unexpected:不是期望的
规范有什么问题啊,求解答