sam 发表于 2009-3-5 15:36:23

js参数问题

innerHTML="<input type=\"button\" name=\"goreg\" value=\"继续\"onclick=\"location.href='<?php echo site_url('client/cli_loader/insuretype2/'+select+'');?>'\" />";

上面的select是函数insuretype2的参数,为什么这么写不行?

xihen 发表于 2009-3-5 17:07:35

你把select写到PHP当中了放到<?php ... ?> 外面

Hex 发表于 2009-3-5 23:35:19

晕,<?php 还能这么写进去,服了,呵呵。

sam 发表于 2009-3-6 10:36:21

低级错误。。:L

tiana 发表于 2009-3-6 16:32:46

:lol 哈哈
页: [1]
查看完整版本: js参数问题