Search found 1846 matches

by ejsoon
2018 May 22, 14:28
Forum: 用計常新
Topic: 學react
Replies: 8
Views: 65

哈哈哈學react路由

https://github.com/reactjs/react-router-tutorial 【第五課】 從路由引入Link,它有activeClassName和activeStyle。 // modules/NavLink.js import React from 'react' import { Link } from 'react-router' export default React.createClass({ render() { return <Link {...this.props} activeClassName="active"/> } }) // modules/Ap...
by ejsoon
2018 May 22, 14:22
Forum: 用計常新
Topic: js筆記
Replies: 39
Views: 1019

JS終級decodeURI and encodeURI

function encode() { var obj = document.getElementById('dencoder'); var unencoded = obj.value; obj.value = encodeURIComponent(unencoded).replace(/'/g,"%27").replace(/"/g,"%22"); } function decode() { var obj = document.getElementById('dencoder'); var encoded = obj.value; obj.value = decodeURICompone...
by ejsoon
2018 May 18, 17:16
Forum: 用計常新
Topic: 學react
Replies: 8
Views: 65

複製一個數組用slice()

We call .slice() to copy the squares array instead of mutating the existing array.

或者:

var newPlayer = Object.assign({}, player, {score: 2});
by ejsoon
2018 May 18, 15:16
Forum: 自由軟體
Topic: 最愛文本編輯器VIM
Replies: 22
Views: 517

學會用Vundle了

安裝某軟,就:PluginInstall

不過一般是改.vimrc之後:PluginUpdate,卸載亦同
by ejsoon
2018 May 18, 14:07
Forum: 開心就好
Topic: 網路曾經是無限樂趣,但是
Replies: 0
Views: 5

網路曾經是無限樂趣,但是

我必須爲自己的健康埋單。我的眼睛已經不能再承受來自屏幕的焦灼。從小過度用眼在遊戲機上。小時候挖的坑啊!
by ejsoon
2018 May 18, 14:00
Forum: 自由軟體
Topic: 開源軟體詳單
Replies: 2
Views: 185

Re: 開源軟體詳單

動畫製作:synfig
by ejsoon
2018 May 17, 10:03
Forum: 用計常新
Topic: linux操作命令筆記
Replies: 38
Views: 1018

Re: linux操作命令筆記

製作usb系統棒(來自這裡):
sudo umount /dev/sdb1
sudo dd if=~/Desktop/target.iso of=/dev/sdx oflag=direct bs=1048576
by ejsoon
2018 May 16, 19:35
Forum: 漢字札記
Topic: 是否可認爲揜是掩的異體
Replies: 0
Views: 10

是否可認爲揜是掩的異體

形近音義同。
by ejsoon
2018 May 16, 15:15
Forum: 用計常新
Topic: 學react
Replies: 8
Views: 65

由function轉class這樣弄

function Cluck(props) { if (props.celsius >= 100) { return <p>{props.celsius}The water would boil.</p>; } return <p>{props.celsius}The water would not boil.</p>; } //由function轉class這樣弄 class Clack extends React.Component{ render() { const celsius = this.props.celsius; if (celsius >= 100) { return <p...
by ejsoon
2018 May 16, 09:49
Forum: 倉頡之友
Topic: 請問三代官方編碼
Replies: 1
Views: 23

請問三代官方編碼

請問BIG5範圍內的三代編碼基本上可以認爲是官方編碼,對嗎?

請問除了「既然」二字需要修正以外,官方編碼基本上都是現行使用的嗎?