单项选择题

若要在一个对象创建之时发生某事件,则该事件的代码应编写在()事件中.

A.unload
B.Init
C.Click
D.keypress