2017-03-15 68 views

回答

0

内输出。如果我已经通过如下将其添加到HTML模板字符串理解的问题正确,“MSG”变量可以TextArea中印刷,

BootstrapDialog.show({ 
     title: 'Button Hotkey', 
     message: $('<textarea id="try" class="form-control">'+ msg +'</textarea>') 
    });