我在$array = [
"Dollar N. America" => [
"Name" => "Dollar N. America"
"Buy" => 3.311
"Sell" => 3.314
],
"Yen Japan" => [
"Name" => "Yen Japan"
"Buy" => 0.028
"Sell" => 0.033
],
"Euro Europe" => [
"Name" => "Euro Europe"
"Buy" => 3.752
"Sell" => 3.948
]
];
$replace_with_me = ["Dollar N. America"=>"DollarUS" , "Yen Japan"=>"YenJP" , "Euro Europe"=>"EuroEU"];
foreach($array as $key=>$value){
$array[$replace_with_me[$key]] = $array[$key];
unset($array[$key])
}
var_dump($array[$key]);
有一个express.js应用,
我运行了npm install moment --save,因此该模块是从D:\xampp\htdocs\test\express\myapp>
下载的,但实际上我需要使用pug在D:\xampp\htdocs\test\express\myapp\node_modules\moment
包含js。
那么包括这种js或安装模块的正确方法是什么?