问题:
I'm implementing some changes to existing js code that is a plugin for freeboard. The problem is that I'm not sure how to acces received json payload.
The implementation...
问题:
I am trying to add two values in a mongoose function.
This the function im using:
Equipa.findOne({ '_id': req.params.equipaID }, function (error, equipa) {
if (error)...
问题:
I have my AJAX split in two parts. The "AJHAX" function which has two values, the url of the file to load and then the function where I can specify where I want it to end u...
问题:
I have the following function:
async function get<U>(url: string): Promise<U> {
return getUrl<u>(url);
}
However, it is possible to call it like...
问题:
The setup:
n categories
each category has a weight (an artificial number that indicates the importance of that category)
Each string is globally unique
Exa...
问题:
I'm building a simple frontend application, and I'm using React Router V4, I'm trying to hide the navbar on the Login and Register screens.
Here is my App.js code
cla...
问题:
A third party developer created a modal popup for our meet the team page. It has stopped working for some reason.
By clicking the staff members picture their details shou...
问题:
I am creating a New Application using Strapi and I have tried to connect it with my MongoDB which is hosted on Digital Ocean but unfortunately Strapi is not able to fetch t...
问题:
I'm trying to figure out how to pass req.params around using Express in the context of MVC.
I know how to properly reference req.params but when I split my app.js up int...
问题:
I disabled browser back button using the following code on load of page
history.pushState(null, null, location.href);
window.onpopstate = function () {
history.go...
问题:
I am trying to load an external script in the middle of my React Component.
import React from 'react';
class Test extends React.Component {
componentDidMount() {...
问题:
So I've got a class of mine, it's quite big so I cannot include it here, but essentially:
var MyClass = function(options) {
this.options = {}
this.options = $.extend(...
问题:
In angular 6, I have a typescript class like this
export class Hello {
id: number;
name?:string;
txt?:string;
}
From a component controller, I would like to retr...