2013-03-14 122 views

回答

0

终于想通了这一点:

// Create a marker 
var myMark = cm.markText(...) 

// Add the listener directly on the marker 
CodeMirror.on(myMark, "hide", function(){ 
    // do stuff 
});