
javascript
CheriYu
我本微末凡尘,可也心向天空。
展开
-
confirm的使用
<!--纯手打,不保证质量--><script type="text/javascript"> function rec(){ var message="你喜欢我吗?"; if(message==true){ document.write("嗯,有眼光"); }else{ document.wr原创 2017-08-11 14:28:54 · 694 阅读 · 0 评论 -
prompt用法
function promptDemo(){ var score=prompt("请输入分数"); if(score>90){ document.write("哇塞。学霸"); } else if(80<score){ document.write("80---90"); }原创 2017-08-11 14:43:25 · 20017 阅读 · 0 评论 -
打开新窗口和关闭新窗口
<!--<script>中--'_self','_blank'等>function Wopen(){window.open('http://www.imooc.com','_self','width=300,height=200,menubar=no,toolbar=no,status=no,scollbars=yes'); } <!--body中--> <input type原创 2017-08-11 15:02:41 · 759 阅读 · 0 评论 -
javascript初级
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>原创 2017-08-11 16:20:43 · 328 阅读 · 0 评论