Working with Client Scripts

2 мес. 2 нед. назад #6122 от admin
admin создал тему: Working with Client Scripts
Registering scripts

Registering inline scripts
Registering script files

Registering CSS

Registering inline CSS
Registering CSS...

Working with Client Scripts

Modern web applications, additionally to static HTML pages that are rendered and sent to the browser, contain JavaScript that is used to modify the page in the browser by manipulating existing elements or loading new content via AJAX. This section describes methods provided by Yii for adding JavaScript and CSS to a website as well as dynamically adjusting these.