How does bootstrap Pass Data to modal inside

  node.js, question

A pop-up window made by modal of bootstrap inside, but how to transfer data to this pop-up window?

<!-- 模态框(Modal) -->
<div class="modal fade" id="view_user" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
            <h4 class="modal-title" id="myModalLabel">
         <div class="modal-body">
      </div><!-- /.modal-content -->
</div><!-- /.modal -->

Such a simple pop-up window. It is hoped that clicking on the button and the pop-up window inside will display the corresponding data of the database inside.
But how should data be transmitted here?


As shown above, I click “View Details” to pop up the modal box:


How does this transfer data here?

There are many methods
Can support ajax in modal
You can also render it at the back end first.