📜  如何在模态显示上更新代码镜像数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:35.149000             🧑  作者: Mango

代码示例1
$('#exampleModal').on('shown.bs.modal', function() {
    myCodeMirror.setValue('[Your Dynamic Value]');
    // Refresh Code mirror Here 
    myCodeMirror.refresh();
});