Dreamweaver CS6 中的示例:
<script src="libs/Three.js"></script>
<script>
var scene = null,
function init(){
scene = new THREE.Scene();
scene. //a few code hints show up, not all
scene.rotatation.x += 0.01; //this one exists, but code hints doesn't find it
}
function move(){
scene. //no code hints show up
}
</script>
所以我的问题是:
在 move() 中,没有显示代码提示的原因可能是因为它们尚未在 init() 中初始化。有没有办法让它们出现在 move() 中?
为什么代码提示不显示scene.rotation?如何让它显示所有变量/方法?
这不仅是 Dreamweaver 的问题,在我尝试过的其他 Web 构建器中也是如此。
如果您想知道,这就是我所说的代码提示:http: //i.imgur.com/IDW2ljh.jpg