我正在使用提升缩放效果来缩放图像,我的图像标记是:
<img id="zoom_01"
src='New folder/small/image.jpg'
data-zoom-image="New folder/large/image.jpg">
Run Code Online (Sandbox Code Playgroud)
和elevatezoom脚本是:
<script>
$("#zoom_01").elevateZoom({scrollZoom : true});
</script>
Run Code Online (Sandbox Code Playgroud)
我有很多想要缩放的图像,同样的id,src值正在改变但是我无法改变数据缩放图像的值.如何更改数据缩放图像值,你也可以访问任何[e coomerce website我想说的是什么.1
我是角色的新手,想要知道为什么以及何时应该两次注入所有需要的依赖项.
示例:
var analysisApp=angular.module('analysisApp',[]);
analysisApp.controller('analysisController',function($scope,$http,$cookies,$state,globalService){
});
Run Code Online (Sandbox Code Playgroud)
但我们也可以将上面的代码写成:
var analysisApp=angular.module('analysisApp',[]);
analysisApp.controller('analysisController',['$scope','$http','$cookies','$state','globalService',function($scope,$http,$cookies,$state,globalService){
}]);
Run Code Online (Sandbox Code Playgroud)
为什么?
我有两个脚本 package.json
"start:dev": "nodemon ./src/index.js",
"start": "npm run build && node ./build/index.js",
Run Code Online (Sandbox Code Playgroud)
npm start效果很好。我要跑步"start:dev": "nodemon ./src/index.js"
这是我的 div style
<style>
#N_fixedBottom
{
position:fixed;
bottom:0px;
left:0px;
right:0px;
background-color:#004369;
width:100%;
height:20px;
z-index:100;
}
</style>
<div id="N_fixedBottom">
</div>
Run Code Online (Sandbox Code Playgroud)
这div当它向下滚动到页面的底部应该隐藏。因为这个 DIV 隐藏了我的页脚。
这是我的实际数组:
let mainArray= [
{
value: '/AG_TURF-123',
label: 'Ag & Turf',
checked: false,
id:123,
children: [
{
value: '/AG_TURF-123/TRACTOR-456',
label: 'Tractors',
checked: false,
id:456,
children: [
{
value: '/AG_TURF-123/TRACTOR-456/Large-7-8-9-series',
label: 'Large (7, 8, 9) Series',
checked: false,
id:789,
children: [{
value: '/AG_TURF-123/TRACTOR-456/Large-7-8-9-series/7-family-tractor',
label: '7 Family Tractor',
checked: false,
id:101112
},{
value: '/AG_TURF-123/TRACTOR-456/Large-7-8-9-series/8-family-tractor',
label: '8 Family Tractor',
checked: false,
id:131415
},{
value: '/AG_TURF-123/TRACTOR-456/Large-7-8-9-series/9-family-tractor',
label: '9 Family Tractor',
checked: false,
id:161718
}],
},
{
value: '/app/Http/routes.js',
label: 'routes.js',
checked: false,
id:181920
}, …Run Code Online (Sandbox Code Playgroud)