我刚刚遇到了this sample code,它具有包含外部源和身体的脚本标记。我认为这是一种巧妙的方式将一些信息传递给包含的脚本。 它是如何工作的?带有外部源和身体的脚本标记
<html>
<head>
<script src="http://unhosted.org/remoteStorage.js">{
onChange: function(key, oldValue, newValue) {
if(key=='text') {
document.getElementById('textfield').value= newValue;
}
},
category: 'documents'
}</script>
</head>
我不认为这是如何工作的问题,而不是这是否会影响代码的执行。 – Purag 2011-12-30 04:16:49