chore(i18n,curriculum): update translations (#42080)

This commit is contained in:
camperbot
2021-05-10 19:48:45 +05:30
committed by GitHub
parent 4556b446b8
commit 994c2a1ce2
4 changed files with 18 additions and 6 deletions

View File

@ -12,7 +12,7 @@ dashedName: remove-an-element-using-jquery
jQuery 有一個 `.remove()` 方法,能完全移除 HTML 標籤。 jQuery 有一個 `.remove()` 方法,能完全移除 HTML 標籤。
`.remove()` 方法從頁面移除 `target4` 標籤 `.remove()` 方法從頁面移除 `#target4` 元素
# --hints-- # --hints--

View File

@ -32,10 +32,16 @@ assert(
應該有一個監聽函數 `store.subscribe` 訂閱 store。 應該有一個監聽函數 `store.subscribe` 訂閱 store。
```js ```js
(getUserInput) => assert(getUserInput('index').includes('store.subscribe(')); (getUserInput) => assert(getUserInput('index').match(/store\s*\.\s*subscribe\(/gm));
``` ```
在更新 store 時,`store.subscribe` 應該在回調中使全局變量 `count` 增加 `store.subscribe` 應該收到一個函數
```js
(getUserInput) => assert(getUserInput('index').match(/(\s*function\s*)|(\s*\(\s*\)\s*=>)/gm))
```
在更新 store 時,`store.subscribe` 應該在回調中使全局變量 `count` 的值增加。
```js ```js
assert(store.getState() === count); assert(store.getState() === count);

View File

@ -12,7 +12,7 @@ dashedName: remove-an-element-using-jquery
jQuery 有一个 `.remove()` 方法,能完全移除 HTML 标签。 jQuery 有一个 `.remove()` 方法,能完全移除 HTML 标签。
`.remove()` 方法从页面移除 `target4` 标签 `.remove()` 方法从页面移除 `#target4` 元素
# --hints-- # --hints--

View File

@ -32,10 +32,16 @@ assert(
应该有一个监听函数 `store.subscribe` 订阅 store。 应该有一个监听函数 `store.subscribe` 订阅 store。
```js ```js
(getUserInput) => assert(getUserInput('index').includes('store.subscribe(')); (getUserInput) => assert(getUserInput('index').match(/store\s*\.\s*subscribe\(/gm));
``` ```
在更新 store 时,`store.subscribe` 应该在回调中使全局变量 `count` 增加 `store.subscribe` 应该收到一个函数
```js
(getUserInput) => assert(getUserInput('index').match(/(\s*function\s*)|(\s*\(\s*\)\s*=>)/gm))
```
在更新 store 时,`store.subscribe` 应该在回调中使全局变量 `count` 的值增加。
```js ```js
assert(store.getState() === count); assert(store.getState() === count);