Có thể dùng Jquery scrollTop, bạn tham khảo xem:
.html: <div class="tab-content"></div>
.js: $('.tab-content').scrollTop($('.tab-content')[0].scrollHeight);
Best posts made by joseph
-
RE: [HTML+JS] Cuộn xuống cuối khung chat sau khi gửi tin nhắn
-
RE: Làm thế nào để start nodejs ? nghiên cứu source code API service có sẵn
Bạn cứ set biến môi trường NODE_ENV là production đi:
-
RE: Làm thế nào để start nodejs ? nghiên cứu source code API service có sẵn
bạn cần chạy: npm install để clone thư viện thuộc list "dependencies" trong package.json về(lưu trong thư mục node_modules), rồi sau đó mới chạy lệnh npm run start
-
RE: Ai biết chỉ giúp mình cách get id cho trang chi tiết với. thanks.
route.get('details/:id', function(req, res) {
var id = req.params.id;
//nên console.log(id); chỗ này xem có lấy dc id không, nếu không thì khai báo: var id = req.body.id xem.
db_news.news.find({_id: mongojs.ObjectId(id)}, function(err, data) {
res.render('home/news/detail', {new: data});
})
});- detail.pug
title #{new.title}
content #{new.content}
- detail.pug
-
RE: Cách gửi dữ liệu vào form trên web khác để crawl
- https://dttc.haui.edu.vn/vn/s/sinh-vien/bang-mon-bat-buoc?s=0841060227&action=p1&p=1&ps=50&exp=rownb&dir=1
- https://dttc.haui.edu.vn/vn/s/sinh-vien/bang-mon-tu-chon?s=0841060227&action=p2&p=1&ps=50&exp=rownb&dir=1
- https://dttc.haui.edu.vn/vn/s/sinh-vien/bang-mon-con-thieu?s=0841060227&action=p3&p=1&ps=50&exp=SubjectName&dir=1
Latest posts made by joseph
-
RE: Làm thế nào để start nodejs ? nghiên cứu source code API service có sẵn
cả User và System variables để chạy project, khi nào ko xài nữa thì vào xóa thôi.
-
RE: Làm thế nào để start nodejs ? nghiên cứu source code API service có sẵn
Bạn cứ set biến môi trường NODE_ENV là production đi:
-
RE: Làm thế nào để start nodejs ? nghiên cứu source code API service có sẵn
bạn cần chạy: npm install để clone thư viện thuộc list "dependencies" trong package.json về(lưu trong thư mục node_modules), rồi sau đó mới chạy lệnh npm run start
-
RE: Sửa lỗi giúp mình với
- có thể là do permision của window, bạn Run as administrator của sổ lệnh nhé(nếu muốn sử dụng npm cho cả user thường thì bạn cần set biến môi trường).
- Bạn đã cài npm chưa: npm install -g [email protected]
kiểm tra version của node và npm xem hiện tại là gì: node -v và npm -v
xóa cache: npm cache clean rồi cài lại những cái trên: npm i -g yo generator-angular-fullstack
-
RE: Kết nối ejs với bootstrap
Trong file index.js bạn đã set:
app.use(express.static(__dirname + '/public'));
app.use('/css', express.static('public/css'))
.use('/fonts', express.static('public/fonts'))
.use('/img', express.static('public/img'))
.use('/js', express.static('public/js')) -
RE: Hỏi về cách gọi function trong angularjs
Bạn tạo một factory:
app.factory('changeToSlug', function() {
var slug;
function set(data) {
slug= data;
}
function get() {
slug = $title.toLowerCase();
......
........//đoạn trong function ChangeToSlug của bạn
return slug;
}return { set: set, get: get }
});
trong controller gọi:
.controller('myController'['$scope', 'ChangeToSlug', function($scope, ChangeToSlug){
ChangeToSlug.set('[email protected]');
ChangToSlug.get();
}])code trên có thể không đúng nhưng hướng giải quyết là vậy bạn tham khảo xem và search thêm google nhé.