InputEvent inputType Property
ဥပမာ
ဖြစ်ရပ်နှင့်ပတ်သက်၍ ထည့်သွင်းမှုအမျိုးအစားကို ပြန်ပေးပါ-
function myFunction(event) {
var x = event.inputType;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှုသည် ဖြစ်ရပ် inputType
မှ လုပ်ဆောင်ခဲ့သော ပြောင်းလဲမှုအမျိုးအစားကို ပြန်ပေးသည်။
ဖြစ်နိုင်သောတန်ဖိုးများ-
"insertText""insertReplacementText"
"insertLineBreak" "
insertParagraph"
"
insertOrderedList" "
insertUnorderedList"
"
insertHorizontalRule"
" insertFromYank"
" insertFromDrop" " insertFromPaste" "insertBorderedList "Comserte " "deleteWordForward" "deleteSoftLineBackward" "deleteSoftLineForward" "deleteEntireSoftLine" "deleteHardLineBackward" "deleteHardLineForward" "deleteByDrag" "deleteByCut"
"deleteByContent"
"deleteContentBackward" "deleteContentForward" "
historyUndo" "historyRedo" "formatBold" "
formatItalic
"
"
formatUnderline" "
formatStrikethrough
"
" formatSuperscript
" " formatSubscript" "formatJustify"JustifyFull" "formatJustify"Full" "formatSuperscript
" "formatSubscript" "
formatJustify " JustifyFull " " " formatRemove" "formatSetBlockTextDirection" "formatSetInlineTextDirection" "formatBackColor" "formatFontColor" "formatFontName"
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
အထားအသို
event.inputType
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | မည်ကဲ့သို့ လုပ်ဆောင်ခဲ့သည်ကို ညွှန်ပြသော စာတန်း |
---|
ဆက်စပ်စာမျက်နှာများ
Dom Document execCommand() နည်းလမ်း