单双引号问题

备受折磨的单双引号问题

 

<td class="text-left">{!! $v->record ? "<input type='hidden' name='remark' value='$v->screen_remark'><input type='hidden' name='is_valid' value='$v->data_status'><input type='hidden' name='recordfile' value='$v->record'><input type='hidden' name='speech_technique' value='$v->speech_technique'><a class='btn btn-info btn-sm' onclick='screen(this, \"$v->id\")'><span class='glyphicon glyphicon-play-circle'></span></a>" : '暂无' !!}</td>

以后要用到单纯的 '' "" 可以用\转义符来 转义

posted @ 2018-06-11 17:28  段佳伟  阅读(157)  评论(0编辑  收藏  举报