PHP中echo JS的有关问题,好诡异啊请大家看看

WBOY
Release: 2016-06-13 13:30:33
Original
796 people have browsed it

PHP中echo JS的问题,好诡异啊,请大家看看
如下
">下载号码

JS:

function getTelNumber(telNumber){
alert(telNumber);

}
将$arr[sendNumbers]换成一个字符串,如$sss="123";点击下载号码可以 弹出123,换成$arr[sendNumbers]后就不行了,但是$arr[sendNumbers]的值是有的,$arr[sendNumbers]的值是“123456789”,可以打印出来,但是点下载号码的时候就是弹不出来,将$sss=“123456789”;是可以弹出123456789的,好奇怪哦,换成变量就不行,变量明明有值啊

------解决方案--------------------

探讨

找出是什么原因了
查询语句
$sql="select sum(count) as count,sendTime,group_concat(sendNumber) as sendNumber from `countmessage` ".$where." group by sendTime" 这样写就会被窃取一部分,在分组的情况下

$sql="select count,sendTime,……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template