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">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
               用户信息
            </h4>
         </div>
         <div class="modal-body">
            <p>ID:2016004501</p>
            <p>用户名:我是买家</p>
            <p>用户组:普通用户</p>
            <p>真实姓名:未认证</p>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>

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.