key name], subcol. name as [subtable column name], omain. name as [master table name], maincol. name as [primary table column name] From sys. foreign_keys FK join sys. all_objects osub on (FK. parent_object_id = osub. object_id) join sys. all_objects omain on (FK. referenced_object_id = omain. object_id) join sys. foreign_key_columns fkcols on (FK. object_id = f
The syntax of makefiles (makefile syntax ):
Makefile mainly includes two aspects: 1. A set of dependencies 2. Rules
A simple MAKEFILE file: makefile1
MyApp: Main. o2. O3. O gcc-O MyApp main. o2. O3. Omain. O: Main. c a. H gcc-C main. c2. O:2. C a. h B. H gcc-C2. C3. O:3. C B. H C. H gcc-O3. C
1. A group of Dependencies:
Dependency defines the final applicationProgramThe relationship between each file and the source file. For example, the abov
Thinkphp supports routing and binding capabilities for full domain names, sub-domains, and IP deploymentsTo enable the Domain name Deployment routing feature, you first need to turn on:' Url_domain_deploy ' = trueThere are two ways to define domain name deployment rules: Dynamic registration and configuration definitions. We are now mainly talking about dynamic registration in this way.Dynamic registrationYou can dynamically register domain name deployment rules in your app's public files or in
Do BBS and commercial website should often use, there is no reason to let users enter the password every time to log in. We need cookies to implement the automatic login feature:01.function GetCookie (name) {var start = document.cookie.indexOf (name + "=");var len = start + name.length + 1;if ((!start) (name!= document.cookie.substring (0, name.length)) {-Return null;06.}The. if (start = = 1) return null;var end = Document.cookie.indexOf ('; ', Len);if (end = = 1) end = Document.cookie.length;R
to say that cookies implement the problem of accessing the same domain. The syntax is as follows:
Copy Code code as follows:
Document.cookie = "Name=value;path=path;domain=domain";
The red domain is the value of the cookie field set.
For example, "www.qq.com" and "sports.qq.com" common an associated domain name "qq.com", if we want to "sports.qq.com" cookies under "www.qq.com" access, we need to use cookies Domain attribute, and you need to set the Path property to "/"
The Chrome.cookies.get function is asynchronous and, if so, writes:
function GetCookie () {
var result={};
Chrome.cookies.get ({' name ': ' Prouserid ', ' url ':d omain[0]}, function (cookie) {
Result=cookie;}
);
return result;
Then the function return value can only be undefined, and the value of the cookie cannot be taken.
Netizens have given a method as follows:
function GetCookie () {
chrome.cookies.get ({' name ': ' Prouserid ', '
(expdate.getdate () + 1));Path: Setting a cookie can be accessed by other Web pages on the server, by default to pages in the same directory.Make all pages in the files file directory or its subdirectories accessible: Document.cookie = "Firstname=one" + ";p ath=/files";If you want to allow cookies to be accessed by all pages on the server, use only one "/" representation. Document.cookie = "Firstname=one" + ";p ath=/";Domain: Used to share cookies across multiple servers within the same domain.
Recently in a project, JS Delete cookie is always unsuccessful, and finally found that there is no specified cookie domainJS Delete Cookie is to change the expiration time of the cookie, the expiration time of the cookie is set to the past, the following items must be specified1.cookie Name2.cookie value3.cookie expiry time4.cookie Domain5.cookie PathThe above are indispensable, must have the ability to modify the cookieThe specific code is as follows:1 /** Set Cookies2 * @param {cookie name}3 *
particular attention to the management of cookies when using the hi.py framework. Of course, if you want to manage your own Cookie,hi-nginx also provides Req.has_cookie and Req.get_cookie two read only APIs. If you want to write an API, you can write it using Res.header. Like what:Add Hi_need_cookies on to the location segment1 Location /{2 hi_need_cache off; 3 Hi_cache_expires 5s; 4 Hi_need_cookies on; 5 Hi_need_session on; 6 Hi_session_expires 300s;
The original use of JS to read and write cookies has not paid attention to a problem:The same key value, different domain (locahost.dev.xxx.com, dev.xxx.com, xxx.com, etc.) can exist in the cookie at the same time, Document.cookie can read these cookies, But there is no domain information. I also try to find out what method can be used to read the domain information of cookies, but unfortunately, did not find (do not know if you have any way to read the domain information, if so, please enlighte
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.