- 响应式设计,支持桌面端和手机端自适应 - 首页展示轮播图、推荐歌单、热门歌曲、新碟上架、热门歌手 - 歌曲/歌手/专辑/歌单详情页 - 底部播放器:播放/暂停、上下首、进度拖动、音量控制 - 歌词同步滚动显示 - 搜索功能 - 后台管理 /admin - JSON文件存储
21 lines
717 B
JavaScript
21 lines
717 B
JavaScript
'use strict';
|
|
const descriptor = { value: 'SqliteError', writable: true, enumerable: false, configurable: true };
|
|
|
|
function SqliteError(message, code) {
|
|
if (new.target !== SqliteError) {
|
|
return new SqliteError(message, code);
|
|
}
|
|
if (typeof code !== 'string') {
|
|
throw new TypeError('Expected second argument to be a string');
|
|
}
|
|
Error.call(this, message);
|
|
descriptor.value = '' + message;
|
|
Object.defineProperty(this, 'message', descriptor);
|
|
Error.captureStackTrace(this, SqliteError);
|
|
this.code = code;
|
|
}
|
|
Object.setPrototypeOf(SqliteError, Error);
|
|
Object.setPrototypeOf(SqliteError.prototype, Error.prototype);
|
|
Object.defineProperty(SqliteError.prototype, 'name', descriptor);
|
|
module.exports = SqliteError;
|