document.write('
解析: var str = "hello world";
function isString(str) {
if (typeof str == "string" || str.constructor == String)
{ return true;
}else{
return false;
}