小编dun*_*all的帖子

获取格式化的通用日期/时间

在PowerShell中,您可以格式化日期以返回当前小时,如下所示:

Get-Date -UFormat %H
Run Code Online (Sandbox Code Playgroud)

你可以像这样得到UTC的日期字符串:

$dateNow = Get-Date
$dateNow.ToUniversalTime()
Run Code Online (Sandbox Code Playgroud)

但是,如何才能在世界时间内获得当前时间?

powershell datetime utc

4
推荐指数
1
解决办法
1795
查看次数

Latex段间距和页边距

我的乳胶文件是:

    \title{\large\textbf{Optimizarea rela\c tiei dintre structur\u a \c si comportament \^in modelarea UML}}

    \author{
            Sorin Oltean \\
                    \textit{Universitatea Transilvania din Bra\c sov} \\
                    \small\textit{oltean.s@gmail.com, sorin.oltean@romtelecom.ro} \\
                    \small Tel.: 0752/314288
    }

    \documentclass[12pt]{article}

    \begin{document}
    \maketitle
    \renewcommand\abstractname{\textit{\textbf{Abstract}}}

    \begin{abstract}
    Something..... text.........
    \end{abstract}\\\

    \textbf{Cuvinte cheie:}  \textit{sistem, structur\u a, comportament, UML}

    \section{Introducere}

    \paragraph{  } 
    Para11.............
    \paragraph{ } 
   Para2......
    \bibliographystyle{abbrv}
    \bibliography{main}

    \end{document}
Run Code Online (Sandbox Code Playgroud)

在para1之后,我想开始一个新的段落,但是在段落之间有一个空白行,如何在第一个段落下面开始第2段,没有那个空格?另外,如何定义文档的边距(上,下,左,右)?从左,右,上,下有太多的空间,我想从左右两侧只有2厘米的空间,从上到下3厘米.抱歉我的英文不好..另外我如何指定文件的字体名称和大小?

谢谢!

latex latex-environment

3
推荐指数
1
解决办法
5344
查看次数

GraphQL:react-apollo 客户端覆盖数组元素

我有一个 GraphQL 查询,它返回一个项目数组。我可以在GraphiQL 中运行查询并获得我预期的结果。

我有一个反应的应用程序,用途react-apollo@graphql装饰来解决同样的查询组件的道具。当通过 运行查询时react-apollo,返回数组中的每一项都是相同的——每一项都被最后一项“覆盖”。

我可以在 dev-tools network 选项卡中看到正确的数组项是通过网络发送的,所以这个问题似乎与 react-apollo 有关。什么可能导致 react-apollo 覆盖数组元素?

node.js reactjs graphql react-apollo

2
推荐指数
1
解决办法
666
查看次数

Extending or composing Pinia setup stores for reusable getters, setters and actions

Imagine we have a Pinia setup store that implements a basic set of state, getters and actions:

export const useBaseStore = defineStore('base-store', () => {
  const name = ref<string>('');
  const age = ref<number>(1);
  const ageString = computed(() => `${name.value} is aged ${size.value}`)

  function doubleAge() {
    age.value *= 2;
  }

  return { name, age, ageString, doubleAge }
}
Run Code Online (Sandbox Code Playgroud)

How can we extend or compose this store into further stores to reuse this set of state behaviours? For example

export const usePersonStore …
Run Code Online (Sandbox Code Playgroud)

state store vue.js nuxt.js pinia

1
推荐指数
1
解决办法
1259
查看次数