小编Jas*_*son的帖子

angular 2禁用url编码

我想禁用网址编码.

当我在下面使用这个.

this.router.navigate(['/profile', { tags: 'one,two' }]);
Run Code Online (Sandbox Code Playgroud)

网址是这样的

http://localhost:4200/profile;tags=one%2Ctwo
Run Code Online (Sandbox Code Playgroud)

我希望它非常像下面

http://localhost:4200/profile;tags=one,two
Run Code Online (Sandbox Code Playgroud)

有没有办法禁用网址编码?

javascript http angular2-routing angular

15
推荐指数
1
解决办法
1万
查看次数

无法使用带有节点的express使用res.send()发送数字

我试图在节点中使用express获得"imdb评级",我正在努力.

movies.json

[{
"id": "3962210",
"order": [4.361276149749756, 1988],
"fields": {
    "year": 2015,
    "title": "David and Goliath",
    "director": "Timothy A. Chey"
},
"doc": {
    "_id": "3962210",
    "_rev": "1-ac648e016b0def40382d5d1b9ec33661",
    "title": "David and Goliath",
    "year": 2015,
    "rating": "PG",
    "runtime": "92 min",
    "genre": ["Drama"],
    "director": "Timothy A. Chey",
    "writer": ["Timothy A. Chey"],
    "cast": ["Miles Sloman", "Jerry Sokolosky", "Makenna Guyler", "Paul Hughes"],
    "poster": "http://ia.media-imdb.com/images/M/MV5BMjA3OTQ4NDc4MV5BMl5BanBnXkFtZTgwNDYwMzA1MjE@._V1_SX300.jpg",
    "imdb": {
        "rating": 8.4,
        "votes": 138,
        "id": "tt3962210"
    }
}
}, {
"id": "251656",
"order": [3.489020824432373, 686],
"fields": {
    "year": 1999, …
Run Code Online (Sandbox Code Playgroud)

javascript json couchdb node.js express

7
推荐指数
1
解决办法
3005
查看次数

如何检查特定的CSS值是否存在

为什么这不起作用?

浏览器= Safari

<p style="color:blue;">foo</p>

if ($("p").css(("color") === "blue")) {
        alert(1);
}
Run Code Online (Sandbox Code Playgroud)

谢谢

css jquery

3
推荐指数
1
解决办法
6446
查看次数

标签 统计

javascript ×2

angular ×1

angular2-routing ×1

couchdb ×1

css ×1

express ×1

http ×1

jquery ×1

json ×1

node.js ×1