发表日期: 2022-07-02 16:40:10 浏览次数:37
无为淘宝装修/无为京东店铺设计/无为拼多多网店装修公司/无为企业网店开通申请-网店装修设计
网站设计风格要根据受众对象来设计,如同建房子一样,需要根据这幢房子将定位给什么样的群体受用,从而设计什么类型的风格与样式。上海网站建设公司明企科技为大家介绍几种常见的网站设计风格。
1、儿童类网站
这类网站色彩要艳丽、活泼,根据孩子的特点适当增加一些互动性的内容,如迪斯尼的网站。
2、女性类网站
这类网站色彩要柔和、恬淡,风格上以温馨、浪漫为基调,内容以时尚类为主。
3、企业产品类网站
这类网站设计风格上没有固定的要求,主要应结合产品的类型、外观、消费对象来考虑。
4、青年类网站
这类网站受众一般为年青人,所以在色彩和网站设计风格上要追求青年人的口味,画面可以精致、炫烂。
5、政府信息类网站
这类网站设计要突出政府职能,其对象具有一定的针对性,在色彩和网站建设时最好能体现严谨与权威。
6、学术类网站
这类网站是文化与艺术相关的网站,其受众主要是一些有相关专业基础的浏览者。网站色彩与网站建设风格以突出内涵为主。
关于警告 DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. 的正确解决方法如下:
添加 {useNewUrlParser:true}。
var MongoClient = require('mongodb').MongoClient
var url = 'mongodb://localhost:27017/testdb'// 数据库地址
module.exports = {
getDB: function (callback) {
MongoClient.connect(url, {useNewUrlParser:true}, function (err, db) {
callback(db)
})
}
}
frans
frans
daf***8@126.com
参考地址
3年前 (2019-03-19)
lonny
lon***163@163.com
5
创建索引:
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
const create_index = function (err1, db) {
if (err1) throw err1;
var dbo = db.db("runoob");
var rawIndexStr=[{
"key": { "name": 1, "url": -1, "type": 1},
"name":"site_name_url_type"
}]; //这种可以指定index名称的方式只能用在createIndexes中,不能用在createIndex中,否则提示错误:alues in v:2 index key pattern cannot be of type object. Only numbers > 0, numbers < 0, and strings are allowed.
// var indexStr = { "a": 1 }; //都没有a字段,居然也创建成功了。
var simpleIndexStr = { "name": 1,"url":-1 }; //createIndex的index设置方法,index名称为name_1_url_-1
dbo.collection('site').createIndex(simpleIndexStr,
null,
function (err, results) {
if (err)
console.log("simpleIndexStr Error:\n\t" + err.message);
else
console.log("simpleIndexStr Result:\n\t" + results);
db.close();
}
);
dbo.collection('site').createIndexes(rawIndexStr,
null,
function (err, results) {
if(err)
console.log("rawIndexStr Error:\n\t"+err.message);
else
console.log("rawIndexStr Result:\n\t"+results);
db.close();
}
);
};
MongoClient.connect(url, { useNewUrlParser: true }, create_index);
lonny
lonny
lon***163@163.com
3年前 (2019-09-22)
一只流浪的kk
948***654@qq.com
3
关于警告:(node:2140) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient construct 的正确解决方法如下:
添加:
{useUnifiedTopology:true}
var MongoClient = require('mongodb').MongoClient
var url = 'mongodb://localhost:27017/testdb'// 数据库地址
module.exports = {
getDB: function (callback) {
MongoClient.connect(url, {useUnifiedTopology:true}, function (err, db) {
callback(db)
})
}
}
一只流浪的kk
一只流浪的kk
948***654@qq.com
2年前 (2020-01-27)
无为淘宝装修/无为京东店铺设计/无为拼多多网店装修公司/无为企业网店开通申请-网店装修设计
备案号: 苏ICP备11067224号
CopyRight © 2011 书生商友信息科技 All Right Reserved
24小时服务热线:400-111-6878 E-MAIL:1120768800@qq.com QQ:1120768800
网址: https://www.768800.com 网站建设:上往建站
关键词: 网站建设| 域名邮箱| 服务器空间| 网站推广| 上往建站| 网站制作| 网站设计| 域名注册| 网络营销| 网站维护|
企业邮箱| 虚拟主机| 网络建站| 网站服务| 网页设计| 网店美工设计| 网站定制| 企业建站| 网站设计制作| 网页制作公司|
400电话办理| 书生商友软件| 葬花网| 调温纤维| 海洋馆运营维护| 北京保安公司| 殡仪馆服务| 殡葬服务| 昌平殡葬| 朝阳殡葬|
欢迎您免费咨询,请填写以下信息,我们收到后会尽快与您联系
服务热线:400-111-6878