You throw an error with the throw keyword. You can catch it with a try / catch block pair e.g.. try {. throw new Error('Something bad happened');. }.
確定! 回上一頁