Code note, Xijing note

Source: Internet
Author: User
Tags date1

Code note, Xijing note

1. Js screen resolution: window. screen. width

Java: java. awt. Toolkit. getdefatooltoolkit (). getScreenSize (). width;

2.

The url contains Chinese characters to solve the garbled problem:

Request: encodeURI (url)

In the Action, in get: java.net. URLDecoder. decode (numberSource, "UTF-8 ");

3.

// Select all function checkboxAll () {var checkedStatus = $ ("# checkboxAll "). get (0 ). checked; // select all button $ ("input [name = 'numbersource']"). each (function () {$ (this ). get (0 ). checked = checkedStatus; // set the checkbox to the same status as the all-selected button});} if ($ ("input [name = 'numbersource']"). length = $ ("input [name = 'numbersource']: checked") {// you can check whether all data is selected, yes. Select the all button $ ("# checkboxAll "). get (0 ). checked = true;} else {$ ("# checkboxAll "). get (0 ). checked = false ;}

4.

SecurrCRT: The Client Connecting to the linux Server

5.

Calculation page loading time in js:

Start with: <script> var date = new Date (); </script> end with: <script> var date1 = new Date (); alert (date1.getTime ()-date. getTime (); </script>


JAVA computing program execution time:

Long startTime = System. currentTimeMillis (); long endTime = System. currentTimeMillis (); System. out. println ("running time of the selected number:" + (endTime-startTime) + "ms ");

6.

Note labels and common code:

Style = "border: 1px solid red;" can be added with a red outer frame, which is often used to debug frame sizes such as div.

Vertical-align: vertical arrangement

Font-weight: bold font

Letter-spacing: Adds or removes spaces between characters.

Margin: margin (outer)

Padding: Fill (inner)

<Span style = "letter-spacing: 1pt "> <font face =" "size =" 2 "color =" #666666 "> relationship with the case </font> </span> </td>





Chapter 12 of the Analects of Confucius emphasizes learning methods

I do not know what it means. Learn new things in a gentle manner.
Chapter 12 of the Analects of Confucius focuses on learning methods...

Chapter 12 describes the learner Chapter 12 learning methods Chapter 12 learning attitude Chapter 12 Exercise questions Chapter 12 Preview list Education Network-educational Third Party [exam] [Xinhua Dictionary] [Chinese Teaching Resources Network for middle school] [Coco English] [online English Listening Room] [civil service examination] [education channel] [chinacache] [excellent learning network] [Education Network] [learning]. .... fifth full text of the Analects of Confucius Gong ye Chang-poetry Daquan the Analects of Confucius Gong ye Chang 5 contains an appreciation of the fifth article of the Analects of Confucius Gong ye Chang, it also provides you with the fifth translation of gongyechang, the fifth meaning of gongyechang, the fifth interpretation of gongyechang, the fifth translation of gongyechang, the fifth comment of gongyechang, And the gong yechang ..... [1] because of the website settings, we cannot provide a specific description of the page ......; Eager for beautiful encyclopedia blogs (free study and entertainment )-... Eager for a wonderful encyclopedia boutique blog (free study and entertainment )... supreme daily access to the mutual link gift module... crazy dream-Workspace-Kangaroo-Netease blog always reports "...... "(media files with links not found, such as files )?, Cold Rolled Steel Sheet, Lao Tzu's educational ideology, project report problem code table, miscellaneous (), theoretical basis of Shuxiang campus construction (reprinted ...... english learning Original English Learning Network-English Reading | English language... New Oriental English 6 classical sentence: to conquer the key sentence of reading, describes the sentence of the 6-level sentence, contains a comparison between Chinese and English, download... -- Blog channel -. deep technology blog, mobile development blog, front-end blog, Enterprise Architecture blog, programming language blog, Internet blog, Database Blog, system O & M blog, cloud computing blog, R & D Management blog ,.. http://service.ap-southeast-1.maxcompute.aliyun-inc.com, qingmei liquor cooking: Unknown first-class generals, strong backing of the Cao Wei Dynasty-both intelligence and courage ...... famous book quotes, famous book quotes [famous book quotes] famous book quotes, good reader daily attack, daily scan. The attack went straight through, while the scan went safe. Author: (Qing) Zheng Yu, reading a good book is talking to many noble people... -- How can I create a Netease blog style tutorial on the blog of Aju-Netease? The template of the speech of the wedding bride and groom is selected as a template for the speeches of the two parents. The wonderful tricks of life are simple and convenient, three minutes before going to bed, with a life extension of 30 years, drawing a thumb every day, a rare life ...... the Analects of Confucius Chapter 12 learning methods the Analects of Confucius Chapter 12 learning attitude the Analects of Confucius Chapter 12 Exercise questions the Analects of Confucius Chapter 12 Preview The Analects of Confucius Chapter 12 idioms Chapter 12 courseware the Analects of Confucius Chapter 12 learning attitude the Analects of Confucius Chapter 12 original
 
Compile a webpage code for "Mid-Autumn Festival" content


◆ The legend of the Chinese New Year tells you that I pasted it. I found that I did not write well. Thanks to the netizen.

Legend has it: in ancient China, there was a type of monster named "year" with a long sharp angle and fierce exception. The "year" beast has lived deep under the sea for many years and climbed ashore every New Year's Eve to swallow livestock and hurt lives, therefore, on New Year's Eve, people in villages and villages fled to the mountains to escape the "year" injury. This year's New Year's Eve villagers are busy packing and fleeing to the mountains. At this time, a white-haired old man came to the east of the village and told his mother-in-law that if he had to stay in her house for one night, he will drive the "year" beast away. Everyone did not believe that the old mother-in-law advised him to go up the hill to avoid it. The good old man insisted on staying, and the people refused to help him go up the hill to avoid it. When the "year" beast was ready to break into the village as in previous years, suddenly the white-haired old man burst into a burst of firecrackers, "year" beast trembling and then did not dare to move forward. In the past, the "year" beast was most afraid of red firelights and bursts. At this moment, the door was wide open and I saw an old man wearing a red robe in the hospital laughing, and the "year" beast was stunned and fled. The next day, when people returned to the village from the mountains, they found that the village was safe and sound, and they suddenly realized that the old white-haired man was the fairy who helped everyone to drive out the "year" beast, at the same time, people also discovered three magic weapons for the white-haired old man to evict the "year" beast. Since then, every new year's eve, every household has a red pair of fireworks, and every household has been waiting for years. The more common this has become the most grand traditional Chinese Festival "New Year ".

◆ Legends of Lantern Festival

After the death of Han Gaozu Liu Bang, Liu yingdeng, the son of Lu, was Emperor Han huidi. Huidi's weak nature, indecisive power gradually fell into the palm of his hand. After the death of Emperor Han huidi, Lu once took over the regime and turned Liu's world into Lu's world. Chen's Liu's clan office was furious, but he was afraid of Lu's cruelty and dared not to speak.

After his death, Lu was worried about being hurt and crowded out. As a result, General Lu secretly gathered together to create chaos in order to completely seize the Jiangshan of Liu. The incident was reported to Liu's clan, Qi Wang, and Liu's bags in his ears. Liu's team decided to launch troops against Lu and then contacted Zhou Bo, Chen Ping, the founding Minister, to design and release Lu's "chaos of Lu ". it is completely settled. After the chaos, the second son of Liu Bang, Liu hengdeng, was called Emperor Han Wendi. Emperor Wen deeply felt that the peaceful age was hard to come by, and set the lunar January 15 s of "the chaos of the city of Chu Lu" to celebrate with joy and joy in Beijing. Since then, in lunar January 15, it became a popular folk holiday-"Lantern Festival ".

◆ Dragon Boat Festival legends

In the Warring States Period, Chu Qin competed for hegemony, And the poet Qu Yuan was very popular with Chu Wang. However, Qu Yuan's claim was opposed by the Shangguan's old school, And he repeatedly slander Qu Yuan in front of Chu Huai Wang, chu Huai Wang gradually moved away from Qu Yuan, and Qu Yuan, who had great ambitions, was deeply saddened. He wrote Immortal Poems, such as Li Sao and Tian xiang, with an uncontrollable melancholy. In 229 BC, the Qin Dynasty captured the eight cities in the Chu state, and then sent the Minister to invite Chu Huai Wang to the Qin State and the meeting. Qu Yuan saw the plot of the King of Qin and said that he had a stake in the palace. Chu Huai Wang not only refused to listen, but evicted Qu Yuan from the palace. Chu Huai Wang went to the meeting as scheduled, and he was imprisoned as soon as he arrived in the Qin State. After three years, he died in the Qin State. Soon after the fall of the Chu Dynasty, the Qin Wang sent troops to attack the Chu State. The fall of the King warehouse evacuated the capital of the Qin army to take over the city. On the way to exile, Qu Yuan heard the bad news of the death of the King of Chu Huai and the death of the city.

Fishermen on the river and people on the shore heard that he had come to the river to salvage the bodies of Qu Yuan, and brought dumplings and eggs to the river, here, Dr. Qu's body was also protected from injury by pouring the yellow rice wine into the river so that the drug would faint the dragon water beast. Since then, at the beginning of May, the people of the State of Chu went to the river to draw a dragon boat and cast zongzi to commemorate the great patriotic poet Qu Yuan. The Customs of the Dragon Boat Festival have been circulating like this.

◆ Legends of Qiqiao Festival

Qixi Qiqiao, this holiday originated from the Han Dynasty, the East Jin Ge Hong's "Xijing miscellaneous" has a record of "the Chinese Color female often wears a seven-hole needle in the opening of the building in May July 7, all learning, this is the earliest record about Qiqiao we have seen in the ancient literature. Later in Tang and Song dynasties, women have also been repeatedly mentioned, and Wang jianyoupoetry of the Tang Dynasty said, "The Stars and the stars are decorated with pearllight, And the Qi Xi Gong Yi is busy ". According to Kaiyuan treasure event: Tang Taizong and Feizi feast on the evening of the Qing Dynasty on the Chinese Valentine's Day, and the ladies of the palace are both clever. This tradition has persisted in the civil society and continues from generation to generation.

On the occasion of the Song Dynasty, Qixi Qiqiao was very grand. There was also a market for the monopoly of Qiqiao items in Beijing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.