[code="java"]
[/code]
firebug 出错提示 document.id(tag) is null
出错行 mootools.js 1431
mootools.js对应部分代码
[code="java"]
var Element = new Native({
name: 'Element',
legacy: window.Element,
initialize: function(tag, props){
var konstructor = Element.Constructors.get(tag);
if (konstructor) return konstructor(props);
if (typeof tag == 'string') return document.newElement(tag, props);
return document.id(tag).set(props)
}
......
[/code]
[color=red]return document.id(tag).set(props)[/color]这一行
tag和props打印出来都是undefined