指定了函数的结果。如果没有足够的内存以创建消息框,则返回0。
Specifies the outcome of the function. It is 0 if there is not enough memory to create the message box.
它先是创建一个请求对象,然后再弹出一个信息消息框。
It begins by creating a request object and then popping up an informational message box.
为了演示这一面,我们来做一个稍稍复杂一点的例子 :在页面上创建一个按钮,然后用一个事件处理器来响应按钮事件并弹出一个消息框显示“Hello world”字样。
So we’ll complicate things just a touch and create a button on the page, for which we’ll write an event handler to pop up a message box saying "Hello world", instead.
应用推荐