the difference between px and em for font-size
The articles I’ve read that talk about px and em all say px is an absolute unit while em is a relative unit. “Absolute” seems easy to understand. That is […]
The articles I’ve read that talk about px and em all say px is an absolute unit while em is a relative unit. “Absolute” seems easy to understand. That is […]
I love php array because the array’s key can not only be number but also be string. $arr=array(“a”,”b”,”c”); $arr=[“a”,”b”,”c”]; $arr=array(“k1″=>”a”,”k2″=>”b”,”k3″=>”c”); $arr=[“k1″=>”a”,”k2″=>”b”,”k3″=>”c”]; That makes it an association array or a […]
Javascript does not allow multi -line string constant. var html=’ <div> <span> hello world</span> </div> ‘; alert(html); This will produce an error:”unterminated string literal“. To write multi-line string, you have […]
The Date object looks simple. It has methods to get the date, month, year, hour,minute, second that it represents. And it has methods to set these values. But it has […]
We know that we can refer to a variable in a string; the variable will be expanded to its value: $a=1; echo “$a”; The array member can also be embedded […]
I thought the jQuery library must have supported the calendar/date time picker UI because it is such a basic and frequently used control like button or input box. But I’m […]
If you are a C programmer, you must know you can not declare a variable using the same name as the function formal parameter in the same scope: void foo(int […]
I’ve learned enough about ajax, from javascript ajax to jquery ajax, from client side to server side, from asp to php, from form submit to various data types encoding and […]
We’ve learned how to add markers on map. In that example, the marker is added when the map is loaded, and its location is predetermined. How to add a marker […]
We’ve learned how to add markers on map using baidu map api. An often encountered use case is when user clicks on a marker, an information window pops up showing […]