1
以下是ExtJS中提示的定義: Ext.window.MessageBox.prompt(title,msg,[fn],[scope],[multiline],[value])。在ExtJS中傳遞給fn的參數是什麼?
很明顯,fn是一個函數。但我總是困惑什麼參數會傳遞給fn。我怎樣才能找到它?
以下是ExtJS中提示的定義: Ext.window.MessageBox.prompt(title,msg,[fn],[scope],[multiline],[value])。在ExtJS中傳遞給fn的參數是什麼?
很明顯,fn是一個函數。但我總是困惑什麼參數會傳遞給fn。我怎樣才能找到它?
它在文檔,向下滾動到FN參數:http://docs.sencha.com/ext-js/4-1/#!/api/Ext.window.MessageBox-method-show
Parameters
buttonId : String
The ID of the button pressed, one of:
ok
yes
no
cancel
text : String
Value of the input field if either prompt or multiline is true
opt : Object
The config object passed to show.