database - 如何将html函数存储在数据库中
问题描述
//------------------------------------------------ ------- // 因为我在参数中指定了回调,所以当旋转动画完成时被车轮的回调功能调用。//------------------------------------------------ ------- function alertPrize() { // 获取车轮背景上指针指示的 0 度的段。varwinningSegment = theWheel.getIndicatedSegment();
// Just alert to the user what happened. // In a real project probably want to do something more interesting than this with the result. if (winningSegment.text == 'LOOSE TURN') { var audio = new Audio('clickUp.mp3'); audio.play(); alert('Sorry but you loose a turn.'); } else if (winningSegment.text == 'BANKRUPT') { var audio = new Audio('clickUp.mp3'); audio.play(); alert('Oh no, you have gone BANKRUPT!'); ***<----- Data out put want to database*** } else { var audio = new Audio('click.mp3'); audio.play(); alert("You have won " + winningSegment.text); ***<----- Data out put want to database*** } }
数据输出我想将它存储到数据库谢谢你提前。
解决方案
推荐阅读
- c# - ASP.NET Core MVC 无法绑定复选框列表
- verilog - 以类成员为驱动程序的网络连续分配
- android - 如何将文本放入颤动的滑动器中?
- r - R 中两个变量的唯一组合(dplyr::distinct 不起作用)
- amazon-web-services - Terraform for AWS:根据 beanstalk 实例的 AZ 传递特定的资源地址
- excel - 查找具有单元格匹配范围值的所有行,复制到按值命名的新工作表
- python - 如何在python中识别字符串和字母数字字符串?
- python - 显示分组:CreditScore 和 Age against Churn
- power-automate - 如何在不安装本地电力自动化应用程序的情况下自动化遗留应用程序?
- azure-log-analytics - Azure 日志分析 documentdb 操作