我希望以下文本顯示爲使用JavaScript的''test test test'「。將引號添加到javascript的值
<body>
<blockquote>test test test</blockquote>
</body>
我有以下的代碼,但它不工作
<blockquote window.onload = function test()> test test test</blockquote>
<script type="text/javascript">
function test(){
var a = document.getElementsByTagName(blockquote).value
return "a";
}
</script>
'「a」'只是字符串'a',字面意思。 – pimvdb