javascript中的forin循环和hasownproperty结合使用_javascript技巧