利用mui-modal作为弹框编辑修改属性,如何传递参数到mui-modal
<a href="#modal">{{m.nm}}{{m.sp}}x{{m.no}},{{m.ex}}</a>
如何把相关参数传递到mui-modal? 如果这种做法不妥,麻烦给个建议。谢谢
<div id="modal" class="mui-modal">
<header class="mui-bar mui-bar-nav">
<a class="mui-icon mui-icon-close mui-pull-right" href="#modal"></a>
<h1 class="mui-title">Modal</h1>
</header>
<div class="mui-content" style="height: 100%;">
<input type="hidden" id="drugid" name="drugid"/>
<input type="hidden" id="stid" name="stid"/>
<br>
<label>名称: <input id="drname" name="drname" readonly/></label><br>
<label>效期: <input id="exdate" name="exdate"/></label><br>
<label>数量: <input id="no" name="no"/></label><br><br>
<a href="#modal" class="mui-btn mui-btn-primary mui-block" type="button">确认</a>
</div>
</div>
0 个回复