1.1.2 • Published 3 years ago

article-shuffle v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

逻辑打乱文字

不改变文字显示的原有顺序,而改变在 DOM 树中顺序.

0511193628

Demo: https://innei.github.io/shuffle-article/

使用

yarn add article-shuffle
import { process } from 'article-shuffle'
const $article = document.querySelector('article')
$article.innerHTML = originHTML

$article.querySelectorAll('p').forEach(($p) => {
  process($p)
})