我正在使用django,我写这个装饰器是为了去掉我为ajax视图找到的一些重复代码,我想知道你的意见(太基础了,糟糕的设计,试试这个,好吗,等等)。def ajax_only(func): if not request.is_ajax():return HttpResponse('<p>Ajax not supported.</p
我升级了react-原生为0.39.0,玩笑为17。出于某种原因,当我运行测试时,jest 17会在多个测试中抛出一个错误。但是Jest工作得很好吗?● Test suite failed to run
at Resolver.resolveModule(node_modules/jest-resolve/build/index.js