首页 > 解决方案 > 如何将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***
            }
        }

数据输出我想将它存储到数据库谢谢你提前。

标签: database

解决方案


推荐阅读