摘要: <script> function fun1(){ max = 5;//注意 此处max虽在函数内,但没var声明 } fun1(); //这里调用fun1()相当于在全局var了一个max变量 function fun2(){ max = 10;//此处更改了全局变量max,fun()1中的max 阅读全文
posted @ 2016-10-04 14:49 宋乐怡 阅读(361) 评论(0) 推荐(0)
摘要: <!DOCTYPE HTML><html><head><title>二级联动列表</title><meta charset="utf-8" /><style> .hide{ display: none; }</style><script> /*实现“省”和“市”的级联下拉列表*/ var citie 阅读全文
posted @ 2016-03-15 22:31 宋乐怡 阅读(132) 评论(0) 推荐(0)