摘要:
EasyUI插件及第一个页面: <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Tra
阅读全文
posted @ 2017-06-09 08:48
两枝梅
阅读(248)
推荐(0)
摘要:
1、得到文本框中录入的文本; 2、将文本拆分为字符数组; 3、调用Array对象的revert方法实现数组的倒转; 4、调用Array对象的sort方法实现数组的排序(按照文本); 5、调用Array对象的sort方法,并传入自定义的比较函数,对数组实现按数值排序。 //数组操作function o
阅读全文
posted @ 2017-06-07 20:02
两枝梅
阅读(534)
推荐(0)
摘要:
<h2>5.String对象:字符的查找与过滤</h2> <input type="text" id="txtString"/><br/> <input type="button" value="过滤特殊字符(js)" onclick="searchStringAndReplace();"/> //
阅读全文
posted @ 2017-06-07 19:22
两枝梅
阅读(236)
推荐(0)
摘要:
<h2>4.控制语句:求阶乘</h2> <input type="button" value="求10的阶乘" onclick="getFac();"/> function getFac(){ var result = 1; for(var i=1;i<=10;i++){ result *=i; }
阅读全文
posted @ 2017-06-07 18:33
两枝梅
阅读(690)
推荐(0)
摘要:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3c.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3x.
阅读全文
posted @ 2017-06-07 18:29
两枝梅
阅读(225)
推荐(0)
摘要:
数据类型转换函数 toString--转换成字符串;--所有数据类型均可转换成String类型 parseInt--强制转换成整数;如果不能转换则返回NaN parseFloat--强制转换成浮点数,如果不能转换返回NaN <!doctype html public "-//w3c//dtd xht
阅读全文
posted @ 2017-06-07 17:39
两枝梅
阅读(2205)
推荐(0)
摘要:
html代码: <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3c.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://
阅读全文
posted @ 2017-06-07 17:26
两枝梅
阅读(130)
推荐(0)
摘要:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3c.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3x.
阅读全文
posted @ 2017-06-07 17:10
两枝梅
阅读(125)
推荐(0)
摘要:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en""http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org
阅读全文
posted @ 2017-06-07 14:35
两枝梅
阅读(130)
推荐(0)
摘要:
数据定义语言DDl: Create:创建表或其他对象的结构。alter修改表。drop删除表。truncate删除表数据保存表结构 数据操纵语言DML: insert将数据插入数据表中。update更新数据表中已存在的数据。delete删除数据表中的数据 数据控制语言TCL事物控制语言: 用来维护数
阅读全文
posted @ 2017-06-05 09:09
两枝梅
阅读(181)
推荐(0)