export default {
data(){
return {
blockBtn: false
}
},
methods: {
async isWait(url) {
this.blockBtn = true;
let dosomething = await fetch(url)
this.blockBtn = false;
}
}
}
export default {
data(){
return {
blockBtn: false
}
},
methods: {
isWait(url) {
this.blockBtn = true;
let dosomething = fetch(url).then(() => {
this.blockBtn = false;
});
}
}
}
data.goals[0].gs_id
export default class Forma extends React.Component {
constructor(props) {
super(props);
this.state ={ data: {}, isFetching: true, error: null };
}
componentDidMount() {
fetch('http://localhost:3001')
.then(response => response.json())
.then(result => this.setState({data: result, isFetching: false }));
.catch(e => {
console.log(e);
this.setState({data: result, isFetching: false, error: e }));
});
}
render() {
const { data, isFetching, error } = this.state;
if (isFetching) return <div>...Loading</div>;
if (error) return <div>{`Error: ${e.message}`}</div>;
return <h1>{data.goals[0].gs_id}</h1>;
}
}
Суть такова, что есть прайс(ы) ~5млн и его нужно быстро обновлять (раз в 2 часа).
обновлять или удалять и заново записывать
echo array_flip(get_defined_constants(true)['pcre'])[preg_last_error()];
MySQL supports an extension for optionally specifying the display width of integer data types in parentheses following the base keyword for the type. For example, INT(4) specifies an INT with a display width of four digits. This optional display width may be used by applications to display integer values having a width less than the width specified for the column by left-padding them with spaces. (That is, this width is present in the metadata returned with result sets. Whether it is used or not is up to the application.)
В языках программирования импликация используется, как правило, неявно. Например, конструкция, предполагающая истинность условия B в данном участке программы:if ( выражение A ) { if ( выражение B ) { сделать_что-то_полезное } else { <font color=Red>сбой</font> }; }
будет успешно выполняться тогда и только тогда, когда верна импликация A→B. В то же время эти условия можно спокойно написать в одной строке, объединив их оператором конъюнкции.if ( выражение A ) and ( выражение B ) { сделать_что-то_полезное }
При стандартных опциях компилятора (Delphi, C++ Builder) проверка идет до тех пор, пока результат не станет очевидным, и если А ложно, то (А и В) ложно вне зависимости от В, и не нужно ставить еще один условный оператор.//выражение A - ложно if ( выражение A ) { //Дальше проверка не идет ... if ( выражение B ) { сделать_что-то_полезное } ... }
В функциональных языках импликация может быть не только правилом вычислений, но и видом отношения между данными, то есть обрабатываться (в том числе и выполняться) и создаваться по ходу выполнения программы.