[更新]修改文件上传案例

This commit is contained in:
Anyon 2017-07-11 13:17:21 +08:00
parent d089662c7f
commit 1adabcda66
2 changed files with 14 additions and 15 deletions

View File

@ -138,9 +138,7 @@ require(['jquery'], function () {
} }
</style> </style>
<input type='hidden' name='file_2' /> <input type='hidden' name='file_2' />
<p> <a data-file="mut" data-field="file_2" data-type="png,jpg" data-uptype="local" href="javascript:void(0)">上传图片</a>
<a data-file="mut" data-field="file_2" data-type="png,jpg" data-uptype="local" href="javascript:void(0)">上传图片</a>
</p>
</div> </div>
</pre> </pre>

View File

@ -34,18 +34,19 @@
<pre class="layui-code" lay-title="javascript代码"> <pre class="layui-code" lay-title="javascript代码">
require(['pcasunzips'], function () { require(['pcasunzips'], function () {
/** // 省市联动 /** // 省市联动
* new PCAS("Province","City") * new PCAS("Province","City")
* new PCAS("Province","City","吉林省") * new PCAS("Province","City","吉林省")
* new PCAS("Province","City","吉林省","吉林市") * new PCAS("Province","City","吉林省","吉林市")
* // 省市地区联动 * // 省市地区联动
* new PCAS("Province","City","Area") * new PCAS("Province","City","Area")
* new PCAS("Province","City","Area","吉林省") * new PCAS("Province","City","Area","吉林省")
* new PCAS("Province","City","Area","吉林省","松原市") * new PCAS("Province","City","Area","吉林省","松原市")
* new PCAS("Province","City","Area","吉林省","松原市","宁江区") * new PCAS("Province","City","Area","吉林省","松原市","宁江区")
* // 省、市、地区对象取得的值均为实际值。 * // 省、市、地区对象取得的值均为实际值。
* // 注:省、市、地区提示信息选项的值为""(空字符串) * // 注:省、市、地区提示信息选项的值为""(空字符串)
*/ */
// 实例化PCAS插件
new PCAS('province', 'city', 'area', '广东省', '广州市', '海珠区'); new PCAS('province', 'city', 'area', '广东省', '广州市', '海珠区');
}); });
</pre> </pre>