search

Home  >  Q&A  >  body text

javascript - How to see the parameters of this function?

new Server(port[, options])

What does this parameter mean?

曾经蜡笔没有小新曾经蜡笔没有小新2806 days ago555

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-19 10:48:08

    port是必需的参数。
    options is an optional parameter, which can be passed or not.

    reply
    0
  • 高洛峰

    高洛峰2017-05-19 10:48:08

    If there are square brackets, it means 可选, if there is nothing, it means it must be passed

    reply
    0
  • Cancelreply