我从角度 12 移动到角度 13,并且出现了新错误。所以基本上我曾经通过导入区域设置文件来加载用户的文化。
const localeUri = `@angular/common/locales/${localeId}.js`;
return import(localeUri).then((module) => {
logger.debug("Culture Angular : '" + localeId + "'");
registerLocaleData(module.default);
}).catch((err) => {
logger.fatal("culture not defined for angular", err);
});
Run Code Online (Sandbox Code Playgroud)
该解决方案过去适用于 Angular12,但不再适用于 Angular13。Webpack 找不到任何语言环境。我尝试了 github 上找到的一些解决方案,但没有任何积极的结果
https://github.com/highlightjs/highlight.js/issues/3223#issuecomment-953337602
https://github.com/angular/angular-cli/issues/22154
有什么解决办法吗?
我必须在.net中的web api中检索"idPerson"的值.我已经检索了文件"UploadedImage".但我无法检索"idPerson"的值.
有人有解决方案吗?
谢谢 !
我的js功能
/**
* Upload de l'image de profil
* @method uploadFile
* @private
*/
uploadFile: function () {
var data = new FormData(), files, ajaxRequest;
files = $("#fileUpload").get(0).files;
// Ajout de l'image uploadé vers les données du form
if (files.length > 0) {
data.append("UploadedImage", files[0]);
// Ajout de l'id du patient pour calculer le GUID
data.append("idPerson", this.vm.idPerson);
}
return data;
},
Run Code Online (Sandbox Code Playgroud)
我的网页api:
/// <summary>
/// Méthode d'upload de la photo de profil du patient
/// …
Run Code Online (Sandbox Code Playgroud) 我必须创建多个缩略图并保存在 c# 中的 amazon s3 上。我找不到只能从源文件从内存流创建缩略图的库。但没有文件源,我只有上传的流,我不想在本地保存文件。
谢谢你的帮助!
当值为null或为空时,我想打破图表的行,但我不能.也许我想念一些东西?
var data = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [ {
label: "My First dataset",
fillColor: "rgba(220,220,220,0.5)",
strokeColor: "rgba(220,220,220,0.8)",
highlightFill: "rgba(220,220,220,0.75)",
highlightStroke: "rgba(220,220,220,1)",
data: [65, null, 80, 81, 56, 55, 40]
}, {
label: "My Second dataset",
fillColor: "rgba(151,187,205,0.5)",
strokeColor: "rgba(151,187,205,0.8)",
highlightFill: "rgba(151,187,205,0.75)",
highlightStroke: "rgba(151,187,205,1)",
data: [28, 48, null, 19, null, 27, 90]
} ]
};
Run Code Online (Sandbox Code Playgroud)