Created
October 4, 2010 18:15
-
-
Save triptych/610178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>yui logging</title> | |
<script type="text/javascript" | |
src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"> | |
</script> | |
</head> | |
<body> | |
<div id="something">Hello World </div> | |
<script> | |
YUI().use('node', function(Y) { | |
//you get Y.log for "free" | |
Y.log("Hi there!") | |
//you can output javascript objects as well | |
foo = {bar:"baz", bat: "bam"} | |
Y.log(foo); | |
//you can also output other YUI elements | |
Y.log(Y.one("#something")); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment