Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdn方式引入1.15.1版本,报错js_beautify is not defined #2256

Open
Giemomo opened this issue Mar 13, 2024 · 2 comments
Open

cdn方式引入1.15.1版本,报错js_beautify is not defined #2256

Giemomo opened this issue Mar 13, 2024 · 2 comments

Comments

@Giemomo
Copy link

Giemomo commented Mar 13, 2024

<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify.js"></script>
@Giemomo
Copy link
Author

Giemomo commented Mar 13, 2024

const options = { indent_size: 2, space_in_empty_paren: true }
const dataObj = {completed: false,id: 1,title: "delectus aut autem",userId: 1,}
const dataJson = JSON.stringify(dataObj)
js_beautify(dataJson, options)

@bitwiseman
Copy link
Member

https://cdnjs.com/libraries/js-beautify shows https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify.js as being valid.
I cannot reproduce this issue. Please provide more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants