why javascript permits $ for name of functions?
问题 I am starting to love jQuery but as PHP developer I hate using that $().stuff as everyone know $ in PHP marks variables. I guess jQuery in javascript declares a function like this function $(element) {/*stuff*/} Does javascripts permits $ as the name of a func? Is that a good behaviour? I knew only standard [0-9a-zA-Z_] could be the name of funcs/vars. Am I missing something? Thanks 回答1: You can do var whatever = $.noConflict(); now you can use whatever(..) instead of $(...) documentation at