babel输入以下代码,异常显示
Only expressions, functions or classes are allowed as the default export.export default 只能导处函数 表达式 和 class
export default function() {}export defaut {}let foo...
最近刷letcode碰到的小问题
indexOf12let str = "string"str.indexOf("") // 0
mdn解释The index of the first occurrence of searchValue, or -1 if not found.
An empty string searchValue produces ...