动态执行html中的js
function execHtml( str ){ var match, reg = /\<script[^\>]*\>(.*?)\<\/script\>/gi; while( (match = reg.exec(str)) != null ) str = str.substr(0, match.index) + eval(match[1]) +...
View Article好友动态数据库设计思路
table: behavior 行为表 table: friend_behavior 好友行为关系表 table [behavior] field: bid[int 10]:行为ID uid[int 10]: 用户ID event[varchar 20]:事件(如添加好友则用friend_add表示 behavior[text]: 行为内容(json序列化数组后的字符串) flagid:...
View Article
More Pages to Explore .....