什么是一言接口?
一言接口即在你的网页随机显示一行文字,并且每次刷新网页,文字也随机刷新!
如何接入?
我们可以参考接口接入文档:点击跳转
一言接口接入地址: https://haser.top/api/yiy/yiy.php
<script type="text/javascript" src="https://haser.top/api/yiy/yiy.php?format=js&charset=utf-8"></script>
<div id="yiyan" class="a2" ><script>hitokoto()</script></div>
把上面的代码插入到你想要显示文字的地方即可!
示例:
扫描二维码,在手机上阅读!