Bạn chưa đăng nhập. Vui lòng đăng nhập để hỏi bài
Lê Quỳnh  Anh

Mark the letter A, B, C, or D on your answer sheet to indicate the sentence that best combines each pair of sentences in the following questions.

The thief changed his address all the time. He didn’t want the police to find him.

A. The thief changed his address all the time in order not want the police to find him. 

B. The thief changed his address all the time so as to want the police not to find him. 

C. The thief changed his address all the time as so that the police didn’t find him. 

D. The thief changed his address all the time in order for the police not to find him.

Dương Hoàn Anh
20 tháng 11 2017 lúc 4:10

Chọn đáp án D

“Tên trộm luôn thay đổi địa chỉ. Anh ấy không muốn cảnh sát tìm thấy mình.”

Cấu trúc: - so as to/ in order to + V (bare- inf)

E.g: I get up early in order to/ so as to go to school on time.

- in order for o + (not) to V (inf): để cho ai (không) làm gì đó

A, B, C sai cấu trúc

Lưu ý: sau “so as to/ in order to” không đi kèm với động từ “want”

Dịch: Tên trộm luôn thay đổi địa chỉ để cho cảnh sát không tìm ra mình.

 

Note 45

SỰ KẾT HỢP TỪ VỚI CÁC DANH TỪ THÔNG DỤNG

 Advice

-    follow/ take/ listen to/get on sb’s advice (nghe theo lời khuyên của ai)

-    get/ obtain/ receive advice (nhận lời khuyên)

Bill

-    pay/ settle/ pick up a bill (trả một hóa đơn)

-    be landed with/ face a bill (chịu một hóa đơn)

-    an unpaid bill (một hóa đơn chưa thanh toán)

Career

-    at the height/ peak of one’s carreer (ở đỉnh cao sự nghiệp)

-    embark on a career (dấn thân vào một nghề)

-    have a careeer in (có sự nghiệp trong lĩnh vực)

-    climb the career ladder (thăng tiến nghề nghiệp)

-    week/ ruin one’s career (hủy hoại sự nghiệp của mình)

-    a promising/ brilliant career (sự nghiệp đầy hứa hẹn)

Chance

-    get/have a chance (có cơ hội)

-    give/ offer/ provide a chance (tạo cơ hội)

- jump at/ seize/ grab a chance (nắm lấy cơ hội)

-    not stand a chance of doing sth (không có khả năng làm gì)

-    sheer/ pure chance (sự tình cờ hoàn toàn)

-    good/ fair/ high/strong chance (khả năng cao)

-    minimal/ slight/ little chance (khả năng mong manh)

Demand

-    meet/ satisfy/cope with a demand (đáp ứng/ thỏa mãn nhu cầu)

-    increase/ boost/ stimulate demand (tăng nhu cầu)

-    big/ huge/ great/ considerable/ enormous/ strong demand (nhu cầu lớn/ cao)

Difference

-    make a difference (tạo ra/ mang sự khác biệt)

-    make all the difference (thay đổi lớn)

-    tell the difference (phân biệt)

-    feel/ know/ notice/ see/ perceive/ the difference (cảm nhận, nhận thức sự khác biệt)

-    considerable/ enormous/ profound/ dramatic/ sharp difference (sự khác biệt đáng kể, rõ rệt)

-    with a difference (đặc biệt khác thường)

Difficulty

-    have/ experience/ encounter/ face/ get into/ run into difficulties (gặp khó khăn)

-    do sth with/ without difficulty (làm gì một cách khó khăn/ dễ dàng)

-  solve/ cope with/ deal with difficulties (giải quyết khó khăn)

-    overcome/ surmount difficulties (vượt qua khó khăn)

-    great/ enormous/ considerabke/ serious difficulty (khó khăn lớn, nghiêm trọng)

Fault

-    find/ locate/ identify/ discover fault (tìm lỗi)

-    correct/ fix/ repair/ recify a fault (sữa chữa một lỗi)

-    be all/ entirely one’s own fault (hoàn toàn do lỗi của ai)

-    be hardly one’s own fault (hầu như không phải lỗi của ai)

-    at fault (chịu trách nhiệm về một sai lầm)

Favour

-    do sb a favour (làm giúp ai điều gì)

-    ask a favour (hỏi xin một ân huệ)

-    owe sb a favour (mang ơn ai)

-    return a favour (đáp lại một ân huệ)

-    find/ gain/ win favour (có được sự ủng hộ)

-    in favour of sth (ủng hộ, tán thành cái gì)

Habit

-    be in/ have the habit of (có thói quen)

-    form/ get into/ fall into/ make/ develop/ acquire a habit (hình thành, tạo thành một thói quen)

-    change a habit (thay đổi một thói quen)

-    break/ give up/ get out of a habit (bỏ một thói quen)

-    by habit (do thói quen)

-    out of habit (vì thói quen)

Measure

-    adopt/ take/ implement/ impose/ inưoduce a measure (thực hiện/ áp dụng một giải pháp)

-    appropriate/ effective/ necessary/ practical measure (giải pháp thích hợp/ hiệu quả/ cần thiết thực tế)

-  short-term/ temporary measure (giải pháp tạm thời)

Occupation

-    follow/ take up an occupation (theo một nghề)

-    choose an occupation (chọn một nghề)

-    give up one’s occupation (bỏ nghề)

Opportunity

-    have/ find/ get an opportunity (có/ tìm được một cơ hội)

-    have ample/ considerable/ plenty of opportunity (có nhiều cơ hội)

-    have limited/ little/ not much opportunity (có ít cơ hội)

-    a good/ great/ wonderful/ golden opportunity (cơ hội tốt, cơ hội tuyệt vời, cơ hội vàng)

Problem                      .

-    encounter/ be faced with/ confront/ be confronted with/ face a problem (gặp phải một vấn đề)

-    solve/ deal with/ clear up/ overcome/ address/ tackle a problem (giải quyết/ vượt qua một vấn đề)

-    big/ great/ serious/ acute problem (vấn đề lớn/ nghiêm trọng)

Popularity

-    gain/ grow/ enjoy popularity (ngày càng được ưa thích)

-  at the peak of sbV sth’s popularity (ở đỉnh cao của sự nổi tiếng)

-    an increase/ a rise in popularity (sự ưa chuộng, gia tăng)

-    a decline/ drop in popularity (giảm/ ít nổi tiếng)

Relationship

-    have/ enjoy a close/ good relationship (có mối liên hệ gần gũi/ tốt)

-    build (up)/ develop/ establish/ foster a relationship (xây dựng/ thiêt lập mối quan hệ)

-    improve/ strengthen a relationship (cải thiện, củng cố mối quan hệ)

Standard

-    set a Standard (đưa ra, lập ra một tiêu chuẩn)

-    meeư achieve/conform to/ comply with standards (đáp ứng, đảm bảo tiêu chuẩn)

-    raise/ improve standards (nâng cao/ cải thiện chất lượng)

Subject

-    bring up a subject (đưa ra một đề tài)

-   

Đề thi liên quan Xem thêm » 30 đề thi thử đề thi thử THPTQG môn Tiếng Anh có lời giải chi tiết 29 đề 77394 lượt thi Thi thử 30 đề luyện thi Đại Học môn Tiếng Anh cực hay có lời giải 31 đề 49507 lượt thi Thi thử Tuyển tập đề thi thử Tiếng Anh cực hay có lời giải 31 đề 45157 lượt thi Thi thử 20 Đề thi thử THPTQG môn Tiếng Anh cực hay có đáp án 21 đề 32869 lượt thi Thi thử Tổng hợp đề thi thử tiếng anh thpt quốc gia 37 đề 24650 lượt thi Thi thử Tổng hợp đề thi thử THPTQG môn Tiếng Anh có đáp án 26 đề 15922 lượt thi Thi thử ĐỀ THI THỬ THPT QUỐC GIA NĂM 2019 – LẦN 2 Môn thi: TIẾNG ANH 31 đề 15376 lượt thi Thi thử Kỳ thi thử thpt quốc gia lần 1 năm 2019 môn Tiếng Anh cực hay có lời giải 30 đề 15205 lượt thi Thi thử Đề thi thử thpt quốc gia 2019 môn tiếng anh 21 đề 15110 lượt thi Thi thử 24 ĐỀ THI THỬ THPT QUỐC GIA NĂM 2019 Môn thi: TIẾNG ANH 23 đề 14754 lượt thi Thi thử
Xem thêm » Lớp 12, thi thử THPT quốc gia Hỏi bài Câu hỏi mới nhất Xem thêm »

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

The author fears that children will grow up into adults who are __________.

89 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

The word "complicated" in the third paragraph is closest in meaning to ___________.

23 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

Exams, grades and marks should be abolished because children's progress should only be estimated by _____________.

22 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

According to the first paragraph, what basic skills do children learn to do without being taught?

31 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

What does the author think teachers do which they should not do?

22 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

The word "he" in the first paragraph refers to ___________.

21 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

The passage suggests that learning to speak and learning to ride a bicycle are _________.

17 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, C or D to indicate the correct answer to each of the questions from 43 to 50.

     Let children learn to judge their own work. A child learning to talk does not learn by being corrected all the time. If corrected too much, he will stop talking. He notices a thousand times a day the difference between the language he uses and the language those around him use. Bit by bit, he makes the necessary changes to make his language like other people's. In the same way, children learn all the other things they learn to do without being taught - to talk, run, climb, whistle, ride a bicycle - compare their own performances with those of more skilled people, and slowly make the needed changes. But in school we never give a child a chance to find out his mistakes for himself, let alone correct them. We do it all for him. We act as if we thought that he would never notice a mistake unless it was pointed out to him, or correct it unless he was made to. Soon he becomes dependent on the teacher. Let him do it himself. Let him work out, with the help of other children if he wants it, what this word says, what the answer is to that problem, whether this is a good way of saying or doing this or not.

     If it is a matter of right answers, as it may be in mathematics or science, give him the answer book. Let him correct his own papers. Why should we teachers waste time on such routine work? Our job should be to help the child when he tells us that he can't find the way to get the right answer. Let's end all this nonsense of grades, exams, and marks. Let us throw them all out, and let the children learn what all educated persons must someday learn, how to measure their own understanding, how to know what they know or do not know.

     Let them get on with this job in the way that seems most sensible to them, with our help as school teachers if they ask for it. The idea that there is a body of knowledge to be learnt at school and used for the rest of one's life is nonsense in a world as complicated and rapidly changing as ours. Anxious parents and teachers say, "But suppose they fail to learn something essential, some¬thing they will need to get on in the world?" Don't worry! If it is essential, they will go out into the world and learn it.

 

What does the author think is the best way for children to learn things?

20 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

Which of the following best describes the organization of the passage?

26 07/11/2020 Xem đáp án

Read the following passage and mark the letter A, B, tr or I) to indicate the correct answer to each of the questions from 36 to 42.

     Humans have struggled against weeds since the beginnings of agriculture. Marring our gardens is one of the milder effects of weeds - any plants that thrive where they are unwanted. They clog waterways, destroy wildlife habitats, and impede fanning. Their spread eliminates grazing areas and accounts for one-third of all crop loss. They compete for sunlight, nutrients, and water with useful plants.

     The global need for weed control had been answered mainly by the chemical industry. Its herbicides are effective and sometimes necessary, but some pose serious problems, particularly if misused. Toxic compounds threaten animal and public health when they accumulate in food plants, groundwater, and drinking water. They also harm workers who apply them.

     In recent years, the chemical industry has introduced several herbicides that are more ecologically sound. Yet new chemicals alone cannot solve the world's weed problems. Hence, scientists are exploring the innate weed-killing powers of living organisms, primarily insects and microorganisms.

     The biological agents now in use are environmentally benign and are harmless to humans. They can be chosen for their ability to attack selected targets and leave crops and other plants untouched. In contrast, some of the most effective chemicals kill virtually all the plants they come in contact with, sparing only those that are naturally resistant or have been genetically modified for resistance. Furthermore, a number of biological agents can be administered only once, after which no added applications are needed. Chemicals typically must be used several times per growing season.

 

The word "innate" is closest in meaning to _____________.

23 07/11/2020 Xem đáp án
Xem thêm »

Gọi 084 283 45 85

Hỗ trợ đăng ký khóa học tại Vietjack

Phone 084 283 45 85 Email vietjackteam@gmail.com Liên kết   Đội ngũ giáo viên tại VietJack Danh sách khóa học Danh sách Câu hỏi trắc nghiệm Danh sách Câu hỏi tự luận Bộ đề thi các lớp Tài liệu học tập Hỏi đáp bài tập Thông tin Vietjack   Giới thiệu về công ty Cách thanh toán học phí Chính sách hoàn học phí Chuyển đổi khóa học Chính sách bảo mật Điều khoản dịch vụ Tải ứng dụng Tải nội dung trên Google Play Tải nội dung trên IOS Store CÔNG TY TNHH ĐẦU TƯ VÀ DỊCH VỤ GIÁO DỤC VIETJACK
Giấy chứng nhận ĐKKD số: 0108307822 do Sở KH & ĐT TP Hà Nội cấp lần đầu ngày 04/06/2018
© 2017 Vietjack. All Rights Reserved. $('.main-course .course .bottom-course a.view-fast').each(function () { $(this).click(function () { var course_id = $(this).prev().val(); $.ajax({ type: 'POST', url: 'https://khoahoc.vietjack.com/loadquickview', data: { _token: "EcPCUhYavbHVpfMhKa2ERQZuUpgNggpXCaouEyMu", course_id: course_id }, dataType: 'json', error: function (data) { console.log(data); }, success: function (data) { $('.box-view-fast').html(data.html).show(); $('.bg-overflow').show(); $('#dang-ky-hoc').click(function () { $('.box-view-fast').hide(); $('.bg-overflow').hide(); addToCart(course_id); }); $('.box-view-fast .close-popup').click(function () { $(this).parent().hide(); $('.bg-overflow').hide(); }); } }) }) }); $('#addtocart').click(function () { var course_id = $(this).attr('rel'); addToCart(course_id); }); function addToCart(course_id) { $.ajax({ type: 'POST', // define the type of HTTP verb we want to use (POST for our form) url: 'https://khoahoc.vietjack.com/cart/addtocart', // the url where we want to POST data: { _token: "EcPCUhYavbHVpfMhKa2ERQZuUpgNggpXCaouEyMu", course_id: course_id, type: "ajax", }, dataType: 'json', // what type of data do we expect back from the server error: function (data) { }, success: function (data) { $('#message_alert').html(data.alert); if (data.code) { $('.box-buy').html(data.html); } } }) } $('#addtocartfree').click(function () { var course_id = $(this).attr('rel'); addToCartFree(course_id); }); function addToCartFree(course_id) { $.ajax({ type: 'POST', // define the type of HTTP verb we want to use (POST for our form) url: 'https://khoahoc.vietjack.com/cart/addtocart', // the url where we want to POST data: { _token: "EcPCUhYavbHVpfMhKa2ERQZuUpgNggpXCaouEyMu", course_id: course_id, type: "ajax", }, dataType: 'json', // what type of data do we expect back from the server error: function (data) { }, success: function (data) { } }) } function removeToCart(course_id) { $.ajax({ type: 'POST', // define the type of HTTP verb we want to use (POST for our form) url: 'https://khoahoc.vietjack.com/cart/removetocart', // the url where we want to POST data: { _token: "EcPCUhYavbHVpfMhKa2ERQZuUpgNggpXCaouEyMu", course_id: course_id }, dataType: 'json', // what type of data do we expect back from the server error: function (data) { }, success: function (data) { $('#message_alert').html(data.alert); if (data.code) { $('.box-buy').html(data.html); } } }) } // hanlde click menu item $('#header').on('click', '.js-dropdown-toggle', function (e) { $(this).siblings('.js-dropdown-toggle').attr('data-showed', ''); $(this).siblings('.js-dropdown-toggle').find('.box-dropdown').css('display', 'none'); if ($(this).attr('data-showed')) { $(this).find('.box-dropdown').css('display', 'none'); $(this).attr('data-showed', ''); } else { $(this).find('.box-dropdown').css('display', 'block'); $(this).attr('data-showed', true); } }) $(document).mouseup(function(e) { var container = $('#header .js-dropdown-toggle'); // if the target of the click isn't the container nor a descendant of the container if (!container.is(e.target) && container.has(e.target).length === 0) { hideDropdownHeader(); } }); function hideDropdownHeader() { $('#header .js-dropdown-toggle').attr('data-showed', ''); $('#header .js-dropdown-toggle .box-dropdown').css('display', 'none'); } // end { lang: 'vi' } MathJax.Hub.Config({ showMathMenu: false, "HTML-CSS": { scale: 350 } });

Các câu hỏi tương tự
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết
Lê Quỳnh  Anh
Xem chi tiết