location.pathname;outline:medium;undefined不能加引号

时间:2023-03-09 19:23:21
location.pathname;outline:medium;undefined不能加引号

1.

location.pathname -- 返回URL的域名后的部分。例如 http://www.dreamdu.com/xhtml/ 返回/xhtml/

2.

判断某个名称为undefined时,undefined不能加引号:   if(wocao==undefined)

3.

框子点击后会默认带边框,去掉它的样式是: outline:medium;(手机兼容)

4.

$("#phoneCall").attr("href","elive://go?url=telphone&mobile="+ a.servicePhone);
                $("#phoneCallS").attr("href","elive://go?url=telphone&mobile="+ a.servicePhone);
                $("#phoneMessage").attr("href","elive://go?url=sms?mobile="+ a.servicePhone+"&msg='请编辑信息'");
                $("#phoneMessageS").attr("href","elive://go?url=sms?mobile="+ a.servicePhone+"&msg='请编辑信息'");

移动设备上打电话和发短信的代码,先记着