In the years of development mailbox Webmail process, NetEase mailbox front-end team accumulated a lot of experience, we developed a lot of basic JS Library, to achieve a large number of front-end effect components, developed a mature OPOA framework
VarThe following methods are commonly used in the conversion of such data to Chinese issues.1. Eval parsing or new Function ("' + str + ')" ()// "I am a Unicode encoding"2. Unescape parsing// "I am a Unicode encoding" C # Chinese and Unicode
I. Flow of eventsThe event flow means that more than one element on the page can have the same event. Logically, each element must be able to respond to events in the specified order. The sequence of events is the main difference between the events
Convert to Boolean typeUse two times non-op (!) : Tiantai Yi Zhuang Metallurgy 1 !!5 ==> true With the Boolean constructor: 1 newBoolean(5) == > true The value is converted to a Boolean
Code highlighting produced by Actipro Codehighlighter (freeware) http://www.codehighlighter.com/-->, first of all, a simple understanding .eval can execute a string generation statement, similar to the SQL exec (). What are the use cases for eval?