<navigator url="{{item.type ==‘video’ ? ‘…/video/index?video_id=item.id&video_name=item.title’ : ‘…/subject_detail/index?subject_id=item.id&subject_name=item.title’ }}" class=“search-li” wx:for="{{search_result}}" wx:key=“id”>
如上:在页面的跳转链接的地址上用三元运算符进行判断,但是结果中如果包含变量不知道如何 写才能正确被解析。