fileinput-图片插件「建议收藏」

fileinput-图片插件「建议收藏」<linkrel=”stylesheet”href=”{{asset(‘plugins/fileinput/css/fileinput.min.css’)}}”xmlns=”http://www.w3.org/1999/html”><scriptsrc=”{{asset(‘plugins/fileinput/js/fileinput.js’)}}”></s…

大家好,又见面了,我是你们的朋友全栈君。

<link rel=”stylesheet” href=”{
{asset(‘plugins/fileinput/css/fileinput.min.css’)}}” xmlns=”http://www.w3.org/1999/html”>

<script src=”{
{asset(‘plugins/fileinput/js/fileinput.js’)}}”></script>

<script src=”{
{asset(‘plugins/fileinput/js/fileinput_locale_zh.js’)}}”></script>

<script src=”{
{mix(‘js/fileupload.js’)}}”></script>

var uid = ‘{
{adminId()}}’; //管理员id

var file = new upload({ uid:uid,pictype:1001,uploadid:”fileupload”,tag:”img”,token:'<?php echo e(csrf_token());?>’});

file.initUpload(‘{!! $info->imginfo !!}’,'{
{asset(‘uploadfile’)}}/’) ;

 

<div class=”form-group”>

    <label class=”col-sm-3 control-label”>洗护图片:</label>

    <div class=”col-md-8″>

        <div id=”img_info”>

        <input type=”hidden” id=”img” name=”img” value=”{
{$info->imginfo}}”/>

        <input id=”fileupload” name=”fileupload” type=”file” multiple>

        <input type=”hidden” name=”_token” value=”{
{csrf_token()}}”/>

        <span class=”help-block text_infor”>支持文件格式:xls, xlsx, doc, docx, pdf, jpg, png, jpeg。</span>

        </div>

    </div>

</div>

http://plugins.krajee.com/file-plugin-methods-demo

fileinput 功能演示

上面链接详解

多次初始化值使用

var $el4 = $(‘#fileupload’), initPlugin = function() {

$el4.fileinput({previewClass:”});

};

$el4.fileinput(‘destroy’);

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/139459.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Exception from HRESULT: 0x80070057 (E_INVALIDARG)

    Exception from HRESULT: 0x80070057 (E_INVALIDARG)ExceptionfromHRESULT:0x80070057(E_INVALIDARG)异常。解决方案:清除ASP.NET缓存目录中对应的应用程序目录。ASP.NET缓存目录如下:C:\Windows\Microsoft.NET\Framework64\v4.0.30319\TemporaryASP.NETFilesC:\Windows\Microsoft….

    2022年6月7日
    45
  • c++ uint32_t_int32和uint32

    c++ uint32_t_int32和uint32文章目录使用int64_t形式代替基本类型使用原因stdint.h源码int32_t和uint32_t的区别size_t在不同机器中定义不同:参考文档使用int64_t形式代替基本类型我们都知道,C语言的基本类型就char,short,int等。但是我们在看其他源码时经常碰到int32_t,int8_t这种形式的定义,他们是什么呢。其实他们就是基本类型的typedef重定义。也就是不同平台下,使用以下名称可以保证固定长度。1字节int8_t——char2字节int1

    2026年2月2日
    4
  • 经典sql server基础语句大全

    经典sql server基础语句大全一、基础1、说明:创建数据库CREATEDATABASEdatabase-name2、说明:删除数据库dropdatabasedbname3、说明:备份sqlserver—创建备份数据的deviceUSEmasterEXECsp_addumpdevice’disk’,’testBack’,’c:\mssql7backup\MyNwind_1.dat’…

    2022年4月29日
    35
  • mysql listagg函数_Oracle函数之LISTAGG「建议收藏」

    mysql listagg函数_Oracle函数之LISTAGG「建议收藏」最近在学习的过程中,发现一个挺有意思的Oracle函数,它可实现对列值的拼接。下面我们来看看其具体用法。最近在学习的过程中,发现一个挺有意思的Oracle函数,它可实现对列值的拼接。下面我们来看看其具体用法。用法:对其作用,官方文档的解释如下:Foraspecifiedmeasure,LISTAGGordersdatawithineachgroupspecifiedinth…

    2025年9月26日
    6
  • ubuntu12.04 下搭建LNMP+memcahce+memcahced+redis+mongodb扩展[通俗易懂]

    ubuntu12.04 下搭建LNMP+memcahce+memcahced+redis+mongodb扩展

    2022年3月8日
    52
  • 【Hive】NVL函数「建议收藏」

    【Hive】NVL函数「建议收藏」NVL(expr1,expr2):1、空值转换函数;2、类似于mysql-nullif(expr1,expr2),sqlserver-ifnull(expr1,expr2)。备注:1、如果expr1为NULL,返回值为expr2,否则返回expr1。2、适用于数字型、字符型和日期型,但是expr1和expr2的数据类型必须为同类型。…

    2022年7月13日
    24

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号