firebug真的很好很强大,
以前一直使用alert()调试,忽然发现firebug有个console.log的东东
以前一直使用alert()调试,忽然发现firebug有个console.log的东东
引用
Your new friend, console.log
The easiest way to write to the Firebug console looks like this: console.log("hello world")
You can pass as many arguments as you want and they will be joined together in a row, like console.log(2,4,6,8,"foo",bar).
The easiest way to write to the Firebug console looks like this: console.log("hello world")
You can pass as many arguments as you want and they will be joined together in a row, like console.log(2,4,6,8,"foo",bar).