所以我有一些功能正常的代码,但我需要添加多个图像上传到它.我用过这个插件.现在我的HTML看起来像这样:
<form class="form-horizontal full-width pull-left m-t-20" name="myForm" ng-if="showForm">
<div class="form-group">
<label for="Naam" class="col-sm-3 control-label">Naam</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="Naam" ng-model="addForm.name" placeholder="Naam">
</div>
</div>
<div class="form-group">
<div class="imageselect col-sm-3">
Afbeeldingen
<input type="file" ngf-select ng-model="files" ngf-multiple="true" accept="image/*" />
Drop afbeeldingen: <div ngf-drop ng-model="files" class="drop-box">Drop</div>
</div>
<div class="col-sm-9">
<div ng-repeat="file in files" class="imagepreview">
<img ng-show="myForm.file.$valid" ngf-thumbnail="file" class="thumb"><br /> <button ng-click="file = null" class="thumbremove" ng-show="file">Verwijder</button>
</div>
</div>
</div>
<div class="form-group">
<span class="progress" ng-show="files.progress >= 0">
<div style="width:<< files.progress >>%" ng-bind="files.progress + …Run Code Online (Sandbox Code Playgroud) 所以在 laravel 中我有一个函数,可以发布一些内容并将作业推送到队列中,并从函数(而不是队列)返回一些数据。
现在我认为 Laravel 队列应该是某种异步函数,可以确保您的代码保持快速,即使有大量数据需要处理,因此您将其放入作业中。但我注意到我的代码仍然需要等到作业完成才能将数据返回给用户。这是调用两次的脚本的日志,但一次在作业中几乎没有数据,而另一次则有很多数据:
[2016-09-08 13:26:50] production.INFO: New alert with Image
[2016-09-08 13:26:50] production.INFO: Push is send.
[2016-09-08 13:26:50] production.INFO: Alert data is send back.
[2016-09-08 13:26:50] production.INFO: New image is valid
[2016-09-08 13:26:50] production.INFO: Move file for upload
[2016-09-08 13:26:50] production.INFO: Made it to upload
[2016-09-08 13:28:50] production.INFO: New alert with Image
[2016-09-08 13:31:19] production.INFO: Push is send.
[2016-09-08 13:31:19] production.INFO: Alert data is send back.
[2016-09-08 13:31:20] production.INFO: New image is valid
[2016-09-08 13:31:20] production.INFO: Move …Run Code Online (Sandbox Code Playgroud) 我在给页脚100%宽度时遇到困难它导致水平滚动你能看到什么吗?当我降低100%它会在侧面形成一个橙色条,因为这是背景,我读到元素上有填充可能会导致它但我很确定我的页脚内容中没有任何填充吧所以有人可以帮帮忙吗?
/* CSS Document */
/*-- RESET | Based on Eric Meyer --*/
ol, ul {
list-style: none;
padding:0px;
}
li {
line-height:25px;
}
/*-- BODY BORDER --*/
.bt, .br, .bb, .bl {
background: white; position: fixed; z-index: 99999;
}
.bl, .br {
top: 0; bottom: 0; width: 5px;
}
.bt, .bb {
left: 0; right: 0; height: 5px;
}
.bt {
top: 0;
}
.br {
right: 0;
}
.bb {
bottom: 0;
}
.bl {
left: 0;
} …Run Code Online (Sandbox Code Playgroud) 我目前正在开发一种基于cordova web的离子和角度应用程序.现在我已经创建了一个服务,它按照我的客户想要的方式返回格式化的时间..这个问题是,虽然它适用于Android和浏览器,但它在iOS设备上显示NaN.我插入的日期来自时间戳:NOW()格式的数据库,有没有修复此问题?这是我的约会服务:
.factory('displaydate',['$filter', function($filter) {
return function (date){
var maandarray = new Array('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December');
var actiondate = new Date(date);
var today = new Date();
if(today.getDate() == actiondate.getDate()){
var hourssince = today.getHours() - actiondate.getHours()
var minutessince = today.getMinutes() - actiondate.getMinutes()
var secondssince = today.getSeconds() - actiondate.getSeconds()
if(hourssince > 0){
date = hourssince+'u';
}else if(minutessince > 0){
date = minutessince+'m';
}else{
date = secondssince+'s';
}
}else{
var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds …Run Code Online (Sandbox Code Playgroud) 我正在为 angular 构建一个组件库,我们将在项目之间共享它。但是当我构建包时,html 文件不会被复制到 dist 文件夹中。我收到错误angular Failed to load text-input.component.html。
这是我的 tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
]
},
"exclude": [
"node_modules",
"dist",
"**/*.spec.ts"
]
}
Run Code Online (Sandbox Code Playgroud)
这是编译后的组件:
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) …Run Code Online (Sandbox Code Playgroud) 所以我用angular-google-maps库创建了一个角度应用程序,其中包含markerswithlabels目录,标签与图标重叠,因此你可以在带有标签的另一个图标的顶部看到另一个标签.现在我不想把这个标签和图标隐藏在它背后所以它只显示一个文字,
我已经创建了一个代码笔来显示我的意思:这是我设置标签的地方:
options: {
labelContent : dist + '<br />Overlapse',
labelAnchor: "16 33",
labelClass: 'labelClass',
labelStyle: {opacity: 0.75},
labelInBackground: true
},
Run Code Online (Sandbox Code Playgroud)
这告诉marker目录到用户标记带标签:
<google-map ng-if="showloadedmap" center="map.center" draggable="true" maxZoom="map.maxZoom"
minZoom="map.minZoom" zoom="map.zoom" options="map.options" events="map.events">
<markers models="map.markers"
doCluster="true"
coords="'self'"
icon="'icon'"
click="'onclicked'"
options="'options'"
idkey='id'
clusterOptions='map.clusterOptions'
isLabel='true'>
</markers>
</google-map>
Run Code Online (Sandbox Code Playgroud)
javascript google-maps google-maps-api-3 angularjs ionic-framework
所以我刚刚发布了一个 Laravel 版本到我的生产服务器。但是 .env 文件在我上传时是可读的。所以我把它上传到我网站的根public_html/目录旁边。
我的问题是:如何告诉 laravel.env文件所在的位置?当我将它放在public_html/文件夹中时它起作用了,但是我如何告诉它在根文件夹中查找?
我正在尝试创建一些自动调整大小的圈子.问题是ng-style属性没有更新样式.http://plnkr.co/edit/3HxSzWIyUsLUW6UwFlRR参见plunker
Javascript:
$scope.sellingPoints = {
'1':{ 'text':'Newest Technologies'},
'2':{ 'text':'Rapid Development'},
'3':{ 'text':'Scaleable Solutions'},
'4':{ 'text':'Custom CMS'}
};
$scope.kpi = {};
$scope.sizes = {};
$scope.onResize = function() {
console.log('joe');
var kpifit = document.getElementById('fit');
$scope.sizes.width = kpifit.offsetWidth - 30;
$scope.kpi.width = $scope.sizes.width + 'px';
$scope.kpi.height = $scope.sizes.width + 'px';
console.log($scope.sizes.width);
}
angular.element($window).bind('resize', function() {
$scope.onResize();
})
$timeout(function() {
$scope.onResize();
}, 300);
Run Code Online (Sandbox Code Playgroud)
HTML:
<div class="row no-margin">
<div class="col-md-3 col-xs-6" id="fit" ng-repeat="item in sellingPoints">
<div class="kpi" ng-style="{'width':kpi.width,'height':kpi.height}">
<div class="kpi-text">{{item.text}}</div>
</div>
</div> …Run Code Online (Sandbox Code Playgroud) angularjs ×4
javascript ×3
laravel ×3
php ×3
css3 ×2
angular ×1
angular-cli ×1
asynchronous ×1
css ×1
datetime ×1
deployment ×1
env ×1
google-maps ×1
html ×1
laravel-5.2 ×1
queue ×1
webkit ×1