使用时,直接引入压缩包中js文件
调用时,new PCAS("省份select的name值","城市select的name值","地区select的name值","默认省份", "默认城市","默认地区")
例如(可以直接粘贴下面代码到文件里 存为html文件看效果,注意是否为英文逗号):
<!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>地区联动测试插件</title> </head> <script type="text/javascript" charset="utf-8" src="PCASClass.js"></script> <body> <div > 请选择地址: <select name="province"> </select> <select name="city"> </select> <select name="area"> </select> </body> <script type="text/javascript"> new PCAS("province","city","area","吉林省","松原市","宁江区") ; </script> </html>