我有一个for (i = 0; i < n; i++)
{
s = s + tab[i, n - (i + 1)];
}
,如下:
MessageService
import { HttpClient, HttpHeaders } from "@angular/common/http";
@Injectable({
providedIn: "root"
})
export class MessageService {
private BASE_URL = "http://10.1.1.190/EDSOData/Messages";
constructor(private http: HttpClient) { }
public update(parameters: Object) {
const httpOptions = {
headers: new HttpHeaders({
"Content-Type": "application/json",
})
};
return this.http.post(this.BASE_URL, parameters, httpOptions);
}
}
插入一条消息。如果该应用同时有多个用户,我如何才能检测到所有这些用户的更改?