adminlte.min.js:14 Uncaught ReferenceError: expandingEvent is not defined

When using adminlte, I got error "Uncaught ReferenceError: expandingEvent is not defined" in console, here is the solution

Quill Access and dynamic add toolbar from quill instance

for dynamic custom toolbar, we need access toolbar from quill instance in javascript, this topic show how to access toolbar via quill instance and dynamic add button to toolbar

Javascript module import command demo in ES6

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

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

Javascript array sort demo

Javascript array sort demo

Javascript Array Copy Methods Suggestion

Javascript Array Copy Methods Suggestion

JavaScript Native Time Format Function

JavaScript Native Time Format Function

Full Clone Data Object In Javascript

When Coding Vue, found problem of full clone data Object(Array), solved by the follow code

Normal Position flags in Yii 2.0's View

In Yii 2.0's View, we have 5 flags for position, it's beginPage, head(), beginBody(), endBody(), endPage(). This topic show how to use it correct in view file, if not use it correct, may cost js or css file or code can't register correct
2013-03-14 19:24:47 0 Comments PHP Boy.Lee

understand relation between PHP variable $_SERVER and HTTP request

analysis the relation between PHP variable $_SERVER and HTTP request

control chtml ajaxlink's success action in Yii

How to use chtml ajaxlink's success action in Yii 1.0 Framework

always use var in your js code

a very important idea, I got this by a small bug, but the small bug cost me 1 hour.

js code reload page

demo Javascript code for reload page

get int in Javascript

format number to int in Javascript

JS Javascript string to number transform

transform string to number in Javascript

random num generate function in JavaScript or jQuery

a quick and easy use function for JavaScript or jQuery generate random number