【发布时间】:2015-09-29 02:42:48
【问题描述】:
我正在使用 phalcon 框架,我想将带有 JavaScript 函数的标签作为 href 传递。这是我的代码:
$arr[] = array($first, $second,"<a href='javascript:openOutwardFrm('inventory/outward/?categoryid=2&itemid=1')'><i class='fa fa-edit'></i></a>");
问题出在 href 部分。它只需要“javascript:openOutwardFrm(”)。 我希望 href 字符串为 javascript:openOutwardFrm('inventory/outward/?categoryid=2&itemid=1')
【问题讨论】: