HTML5¼¼Êõ

HTML5 DragEvent - QxQstar(3)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-02-26 15:00 ÎÒÒªÆÀÂÛ( )

function dragover_handler(ev) { console.log( "dragOver" ); // Prevent default select and drag behavior ev.preventDefault();} Àý×ÓÈý£¬Çå³ýÊý¾Ý function dragend_handler(ev) { console.log( "dragEnd" );

function dragover_handler(ev) { console.log("dragOver"); // Prevent default select and drag behavior ev.preventDefault(); }

 Àý×ÓÈý£¬Çå³ýÊý¾Ý

function dragend_handler(ev) { console.log("dragEnd"); dt = ev.dataTransfer; if (dt.items) { (var i = 0; i < dt.items.length; i++) { dt.items.remove(i); } } else { // Use DataTransfer interface to remove the drag data ev.dataTransfer.clearData(); } }

 

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • html5³£Óûù±¾±êÇ© - ÓîÖæ¿ÓÒ»ºÅ

    html5³£Óûù±¾±êÇ© - ÓîÖæ¿ÓÒ»ºÅ

    2017-02-26 15:01

  • HTML5 ruby×¢ÊͱêÇ© - kumayato

    HTML5 ruby×¢ÊͱêÇ© - kumayato

    2017-02-23 15:02

  • HTML5¶¯»­£¨¶þ£©£ºCanvas ʵÏÖÔ²Ðνø¶ÈÌõ²¢ÏÔʾÊý×Ö°Ù·Ö±È - ÃÏÈ»

    HTML5¶¯»­£¨¶þ£©£ºCanvas ʵÏÖÔ²Ðνø¶ÈÌõ²¢ÏÔʾÊý×Ö°Ù·Ö±È - ÃÏÈ»

    2017-02-23 14:05

  • html4Óëhtml5µÄÇø±ð - Aqiaoba

    html4Óëhtml5µÄÇø±ð - Aqiaoba

    2017-02-23 13:00

ÍøÓѵãÆÀ
Ê