1 function myEventHandler(evt) {
2 evt = evt || window.event;
3 // handle event here
4 }
2 if(typeof evt != "undefined") {
3 evt = evt;
5 else {
6 evt = window.event;
7 }
8 // handle event here
9 }
1 static void Main()
2 {
3 string str1 = null;
4 string str2 = null;
5 string defaultValue = "My default text";
6 string display = str1 ?? str2 ?? defaultValue;
7
8 Console.WriteLine(display);
9 // output: "My default text"
10 }
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u
Page rendered at Tuesday, October 07, 2008 12:00:03 AM (Central Daylight Time, UTC-05:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.