Javascript module import command demo in ES6

in ES 6, Javascript module import in two ways, the dynamic import and the hardcode import

Yii 2 Migration create BigInt PK

Sometime we need create BigInt PK(Primary) coloum to replace the normal Int PK, in Yii 2.0's Migration tool, you can simple use the follow command to do the work.

Command for iTerm2 use RSA private key file login SSH server on Mac os

If you got an RSA private key file and need use it to login SSH server on Mac os system, you can direct use the follow command, it's working for Mac's Terminal too.
2019-05-15 10:15:31 0 Comments Vue Boy.Lee

VueJS Ajax Request Auto Cancelled via Axios

I got a very interesting issue, when I publish my new SPA project iProject online, the ajax request will auto cancelled by randon. It's the first time I face that thing, so I spent a little time to do the research.
2019-05-14 09:26:57 0 Comments MySQL Boy.Lee

MySQL 5.7.26 Reset Root Password on Centos 6

MySQL 5.7.26 Reset Root Password on Centos 6, I lost my root password with a mysql error, so I have to reset it, the server is Centos 6 and mysql 5.7.26, follow are the steps

Yii 2 datetime picker demo

Yii 2 datetime picker demo, datetime format like yyyy-mm-dd hh:ii:ss

JS Javascript string to number transform

transform string to number in Javascript

Yii 2.0 use andWhere() Do and or query

In Yii 2.0 Framework, use andWhere() function run DB(MySQL) Query like A = 1 or B = 1
2017-10-16 16:44:09 0 Comments Linux Boy.Lee

Centos 6.x Install ShadowSocks Server Side Program

How to install and run ShadowSocks on Centos 6.x

ShadowSocks-NG White List Mode

Run ShadowSocks-NG with White List Mode, will only effect with user rules, this topic show how to do it.

Javascript array sort demo

Javascript array sort demo

JavaScript Native Time Format Function

JavaScript Native Time Format Function

Yii 2.0 DetailView Set Width Demo Code

In Yii 2.0 DetailView, sometime too long content will break page width, this time need set max-width to limit line width to switch one line to more lines, this topic show how to fix it

Javascript Array Copy Methods Suggestion

Javascript Array Copy Methods Suggestion

Yii 2.0 Left Join Search Code Demo

Yii 2.0 Framework Left Join Search Code Demo

JavaScript use Alert Dialog Prevent Page Refresh and Page Close Mis-Operate

In Weh Dev, Sometime we need Prevent Mis-Operate from Page Refresh and Page Close, JavaScript will help a lot here, this topic show how to use JavaScript Dialog to Prevent Mis-Operate Window Close and Window Refresh