random - 我想在每次刷新 html 时在 html 页面中打印一个随机数
问题描述
每次刷新页面时,我都想在 html 页面中打印随机数。我已经在 PHP 中尝试过:
$number = rand(1111323,9111323)
我需要此代码用于 html 页面。
解决方案
推荐阅读
- go - yaml 文件中的初始键是任意的,我如何在 Go 中读取它们?
- graphql - GraphQL 没有对象类型?
- c++ - 与排序模型一起使用时的 Qt TreeView 问题
- jquery - facebook与jquery共享并在每次共享新时重置缓存
- python - 从 Pandas 中的两列定义一个函数
- php - PHP 发送 GET 而不是 POST
- php - 将 sql 内连接转换为 laravel 雄辩的 ORM
- android - 在反应本机应用程序上使用firebase推送通知
- angular - 如何使用 NgRx 和不同的延迟加载的 Angular 模块对现实世界的应用程序进行建模
- javascript - 创建元素后添加css