🎉 Copied!
|
|
那么,使用JQuery库就可以了。 您只需在 HTML 文件中使用以下头文件:
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="[[jquery_plantuml.js|jquery_plantuml.js]]"></script>
<!-- rawdeflate.js is implicity used by jquery_plantuml.js -->
</head>
jquery.js
、 和 这 3 个文件在服务器上必须有 。jquery_plantuml.js
rawdeflate.js
uml
descriptions are transformed into links to plantuml.com site. (like for Javascript integration.)
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="[[jquery_plantuml.js|jquery_plantuml.js]]"></script>
<!-- rawdeflate.js is implicity used by jquery_plantuml.js -->
</head>
<body>
<p>Example</p>
<hr>
<img uml="
class foo
">
<hr>
<img uml="
class foo
">
</body>
</html>