Created
October 26, 2012 05:00
-
-
Save zhuzhuor/3956883 to your computer and use it in GitHub Desktop.
坑爹的js
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
// a reminder for myself | |
var key = 'aaa'; | |
var val = 'bbb'; | |
var obj = {key: val}; | |
console.log(obj); | |
// you will get {'key': 'bbb'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment