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
Page rendered at Sunday, February 05, 2012 6:52:25 AM (Central Standard Time, UTC-06:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.