ControllersA controller is nothing more than a class extending play.mv dịch - ControllersA controller is nothing more than a class extending play.mv Việt làm thế nào để nói

ControllersA controller is nothing

Controllers
A controller is nothing more than a class extending play.mvc.Controller that groups several action methods.

package controllers;

import play.*;
import play.mvc.*;

public class Application extends Controller {

public Result index() {
return ok("It works!");
}

}
The simplest syntax for defining an action is a method with no parameters that returns a Result value, as shown above.

An action method can also have parameters:

public Result index(String name) {
return ok("Hello " + name);
}
These parameters will be resolved by the Router and will be filled with values from the request URL. The parameter values can be extracted from either the URL path or the URL query string.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
ControllersA controller is nothing more than a class extending play.mvc.Controller that groups several action methods.package controllers;import play.*;import play.mvc.*;public class Application extends Controller { public Result index() { return ok("It works!"); }}The simplest syntax for defining an action is a method with no parameters that returns a Result value, as shown above.An action method can also have parameters:public Result index(String name) { return ok("Hello " + name);}These parameters will be resolved by the Router and will be filled with values from the request URL. The parameter values can be extracted from either the URL path or the URL query string.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Bộ điều khiển
Bộ điều khiển là không có gì nhiều hơn một lớp mở rộng play.mvc.Controller rằng nhóm một số phương pháp hành động. Gói điều khiển; . Nhập khẩu chơi *; . Nhập khẩu play.mvc *; lớp ứng dụng công mở rộng điều khiển { chỉ số Kết quả công cộng () { return ok ( "It works!"); } } cú pháp đơn giản để xác định một hành động là một phương pháp không có tham số trả về một giá trị kết quả, như trình bày ở trên. một phương pháp hành động cũng có thể có các thông số: chỉ số Kết quả công cộng (string name) { trở lại ok ( "Hello" + tên); } các tham số này sẽ được giải quyết bởi các Router và sẽ được lấp đầy với các giá trị từ các URL yêu cầu. Các giá trị tham số có thể được chiết xuất từ một trong hai đường dẫn URL hoặc chuỗi truy vấn URL.




















đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: