我想根据 id_ 进行更新。在前端级别这个 id 没有得到..如何将此 id 传递给控制器..同样的事情如果我阅读收件箱消息,我想更改收件箱字体样式。
问问题
2088 次
1 回答
2
阅读邮件收件箱:
1. Add new field in inbox message table named `is_read` type `int`.
2. And write a select query to select is_read and check whether it is 0 or 1.
3. If 'is_read' = 0 write a CSS style and if 'is_read' = 1 write a different CSS style for the font.
4. And you can fix your self 0 as unread and 1 as read.
5. Then write a update query for 'is_read' as 1 , When selecting the inbox message.
于 2013-08-09T07:57:30.680 回答