zoukankan      html  css  js  c++  java
  • Kindeditor单独调用单图上传增加预览

    html代码:

    <p><input type="hidden" id="url1" name="IDCardPicture1" value="" /> <input type="button" id="image1" value="选择图片" style=" 150px;height: 30px;" /></p>
    <div id="J_imageView1"></div>
     

    JS代码:

    K('#image1').click(function() {
    editor.loadPlugin('image', function() {
    editor.plugin.imageDialog({
    showRemote : false,
    imageUrl : K('#url1').val(),
    clickFn : function(url, title, width, height, border, align) {
    $("#licensecheck").html("");
    var div = K('#J_imageView1');
    div.html('');
    div.append('<img src="' +url + '">');
    K('#url1').val(url);
    editor.hideDialog();
    }
    });
    });
    });

  • 相关阅读:
    瀑布流
    轮播图
    封装动画的函数
    回到顶部带动画
    动画setInterval
    模拟滚动条
    放大镜
    刷新
    cookie
    拖拽
  • 原文地址:https://www.cnblogs.com/lovelh/p/7256775.html
Copyright © 2011-2022 走看看