confirm的使用

来源:互联网 发布:加工中心编程视频教程 编辑:程序博客网 时间:2024/05/17 23:01
<!--纯手打,不保证质量--><script type="text/javascript">    function rec(){        var message="你喜欢我吗?";        if(message==true){            document.write("嗯,有眼光");        }else{            document.write("哼,我也不喜欢你");        }    }    rec();</script><body>    <input type="button" value="提交" onclick="rec()"/></body>