Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

iMuFeng/bmdb

Repository files navigation

豆瓣看过的电影

使用

2.x 使用 React 重构,jQuery 旧版本点击这里 @1.8.1

1. 设置 HTML 头部

<head>
  <meta name="referrer" content="same-origin">
</head>

2. 引入资源

<head>
  <script src="https://cdn.jsdelivr.net/combine/npm/react@17.0.2/umd/react.production.min.js,npm/react-dom@17.0.2/umd/react-dom.production.min.js,gh/iMuFeng/bmdb@3.4.1/dist/bmdb.js"></script>
</head>

3. 初始化参数

参数名 必选 类型 默认值 说明
type string moviebook
selector string 外层选择器
secret string API 密钥
categories string[] 展示的分类名称,默认展示所有分类
noMoreDataTips string You've reached the end of the list. 所有数据加载完成提示语
themeMode string auto light, darkauto
customTheme { light: Theme, dark: Theme } 自定义主题
<div class="container"></div>

<script>
new Bmdb({
  type: 'movie',
  selector: '.container',
  secret: '7bf4205a0a62d00409f3cd70b0736e1a11a9a6a60f7231567f056819787b8096',
  noMoreDataTips: '没有更多数据了'
})
</script>