text: $(function () {
      //上传图片---单图
      $('#file_upload').uploadify({
          'buttonText' : '请选择图片',
          'formData'     : {
              'timestamp' : '',
              'token'     : ''
          },
          'fileSizeLimit' : '1MB',
          'swf'      : "/uploadify/uploadify.swf",
          'uploader' : "/admin/index/uploads",
          'onUploadSuccess' : function(file, data, response) {
              var data=JSON.parse(data);
              if(data.valid==1){
                  var str='<div class="images"><input name="pic" type="hidden" value="'+data.msg+'"/><img src="'+'/uploads/'+data.msg+'" width="150px" height="100px"><a href="javascript:;" class="btn btn-danger col-sm-offset-1 delimg">删除</a></div>';
                  $('#dispathed').append(str);
              }else{
                  alert('失败');
              }
          }
      });
       //删除图片
      $('.panel-body').on('click','.delimg',function () {
          var path=$(this).parents('.images').find('input').val();
          var ourl='/admin/index/delimg';
          $.post(ourl,{path:path},function (res) {
          },'json');
          $(this).parents('.images').remove();
  
      });
      //编辑器
      // var ue = UE.getEditor('editor',{
      //     initialFrameHeight:300,
      //     initialFrameWidth:800,
      // });
  });