跳到主要内容

英语单词辨析:State vs. Status

  • State:比较常用,各种状态都可以用它,但是它更着重于一种心理状态或者物理状态。例如表示水的三种状态:Three states of water —— solid, liquid and gas.
  • Status:用在人的身上一般是其身份和地位,作“状态,情形”讲时,多指政治和商业。例如询问购买商品的状态:What's the status of my purchase?

在编程语言中,state 通常用于有限的、可列举的状态;而 status 则用于不可确定的状态。例如:

名称含义
readyState就那么几种值
statusText描述性的文字,可以任意
onReadyStateChange在几种确定的值之间发生变化
window.status描述性的文字,可以任意