Issue #4608: Fixed a bug that cc.log can‘t print on the page

cc.log can‘t print on the page.