1
我正在使用木瓜來查看DICOM圖像。我想交換主切片以查看圖像的矢狀和冠狀視圖。這是我的代碼。但是我收到一個錯誤,說this.canvas沒有定義。木瓜DICOM圖像查看器 - 交換主切片
我在做什麼錯? 這是我的代碼:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<link rel="stylesheet" type="text/css" href="papaya.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="papaya.js"></script>
<script>
$(document).ready(function(){
$(".papaya-main-swap").click(function(){
papaya.viewer.Viewer.prototype.rotateViews();
});
});
</script>
<title>Papaya </title>
</head>
<body>
<div class="papaya">
<button id="swap-slice" class="papaya-main-swap" type="button" style="display: block; top: 475px; left: 700px; position: relative;">Swap Main Slice</button>
</div>
</body>
</html>