JavaScript
- 3 ответа
- 0 вопросов
5
Вклад в тег
watch: {
options: {
livereload: true
},
gruntfile: {
files: ['Gruntfile.js'],
tasks: ['build:dev']
},
js: {
files: '<%= path.assets %>/javascripts/{,**/}*.js',
tasks: 'concat'
},
compass: {
files: '<%= path.assets %>/stylesheets/{,**/}*.{scss,sass}',
tasks: ['compass:dev', 'autoprefixer']
},
jade: {
files: '<%= path.assets %>/views/{,**/}*.jade',
tasks: ['jade:dev']
}
}
<script src="//localhost:35729/livereload.js"></script>
var aa = document.getElementById('qwe');
var cc = document.getElementById('vce');
aa.onmouseover = function () {
cc.style.display = 'block';
};
aa.onmouseout = function () {
cc.style.display = 'none';
};
function listYears(startYear) {
var currentYear = new Date().getFullYear();
var years = [];
startYear = startYear || 1980;
while (startYear <= currentYear) {
years.push(startYear++);
}
return years;
}
$scope.years = listYears(1950);
<select>
<option ng-repeat="year in years" value="{{ $index }}">{{ year }}</option>
</select>