Replies: 1 comment
-
可以使用以下代码设置 pywebio.session.run_js("$('.custom-file-label').attr('data-browse', '浏览文件')") 参见: https://getbootstrap.com/docs/4.6/components/forms/#translating-or-customizing-the-strings-with-html 后面会将这个按钮文字根据浏览器语言自动切换中英文。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
file_upload按钮上的文字默认是Browse,如何更改成中文呢?
Beta Was this translation helpful? Give feedback.
All reactions