1
我正在按照教程創建一個簡單的模式,但說明解釋瞭如何從調用它的HTML中的按鈕打開它。從HTML外部打開模式
<html>
<head>
</style>
<!-- Don't forget to include jQuery ;) -->
<script src="jquery.modal.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<!-- Modal HTML embedded directly into document -->
<div id="ex1" style="display:none;">
<p>Thanks for clicking. That felt good. <a href="#" rel="modal:close">Close</a> or press ESC</p>
</div>
<!-- I WANT TO ACTIVATE THIS ACTION FROM A JAVASCRIPT FILE -->
<p><a href="#ex1" rel="modal:open">Open Modal</a></p>
</body>
</html>
如果我想從鏈接的js文件中打開它,我該怎麼做?
[jquery modal documentation](http://jquerymodal.com/)有你可以吃的所有答案 –