问题描述
我正在了解 Cypress.io,并在他们的官方网站上看到了这个声明 Cypress.io
I'm learning about Cypress.io and came across this statement in their official site Cypress.io
Cypress 命令不返回它们的主题,而是让它们."
"Cypress commands do not return their subjects, they yield them."
cypress.io 中命令中的yield"和return"有什么区别?
What is the difference between "yield" and "return" in commands in cypress.io?
推荐答案
我把yield 的意思是'付钱',而return = '付钱'.
I take yield to mean 'pay it forward', whereas return = 'pay it back'.
参见核心概念
赛普拉斯命令是异步的,并会排队等待稍后执行.在执行过程中,从一个命令到下一个命令会产生主题,并且在每个命令之间运行大量有用的赛普拉斯代码以确保一切正常.
Cypress commands are asynchronous and get queued for execution at a later time. During execution, subjects are yielded from one command to the next, and a lot of helpful Cypress code runs between each command to ensure everything is in order.
这篇关于这句话是什么意思“赛普拉斯命令不返回他们的主题,他们让他们"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)