单击链接时JavaScript函数无法工作
<head><meta charset="UTF-8"><title>Untitled Document</title><link href="css/default.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function getContent{ document.getElementById("contentFrame").src="LoremIpsum.html"; } </script></head><body><div class="sidebar"><h1>Technical Documentation</h1><ul> <li>Configuration Guides</li> <li>API Guides</li> <li><a href="" onclick='getContent()'> LoremIpsum</a></li></ul><!-- <button onclick="getContent()">Lorem Ipsum</button> --></div><iframe class="content" id="contentFrame" src="dummy.html"></iframe></body>
一只甜甜圈
慕娘9325324