如何根据条件突出显示yii2 detailView中的值?
我已经尝试过这种方式(有和没有let messageVC = self.storyboard?.instantiateViewControllerWithIdentifier("MessagesViewController") as! MessagesViewController
self.navController!.pushViewController(messageVC, animated: false) //should be opaque
,'type' => 'raw'
),但没有运气:
'html'
谢谢!
答案 0 :(得分:0)
您需要使用format
属性,而不是type
:
'format' => 'html'