The cause is selinux. after The selinux is disabled in etcselinuxconfig, I have restarted and created a redmine. on the host machine, I can access 192.168.33.55: 3000 through a browser, and I can also access my own 192.168.33.55: 3000 so I started to modify nginx forwarding 808...The cause is the selinux problem. after The selinux is disabled in/etc/selinux/config, restart the system.
I created a redmine,
The reason is the selinux problem, after shutting down in the/etc/selinux/config, reboot is good.
I created a redmine, and my host hosts were able to access the browser to 192.168.33.55:3000
Inside the virtual machine you can also access your own 192.168.33.55:3000
So I started to modify the Nginx forwarding 8080 to the virtual machine's 3000
Can I use echo to pass php values to js? For example, the question is that the value is transmitted in json format. because there are many records, it takes too much time to use echo.
Reply to discussion (solution)
Why does it take too much time to use echo?
Serialization or json encoding before echo; Echo json_encode ($ array );
Because the database query results have a large number of records, it is too slow for the front-end to click query when it is sent to ajax.
Serialization or jso
This article mainly introduces the CSS to record the user password method of the relevant information, small series feel very good, and now share to everyone, but also for everyone to do a reference. Let's take a look at it with a little knitting.
Simple CSS code does not even conform to Turing's complete language, but it can also be a tool for some attackers, here's a quick introduction to how to use CSS to record a user's password. However, these CSS scripts appear in third-party CSS librarie
)└ ── Subtext@1.0.1 (content@1.0.1, pez@1.0.0)
2. configuration items
1) create a new directory named myprojectCopy codeThe Code is as follows:$ Mkdir myproject$ Cd myproject2) run the initialization command in the directoryCopy codeThe Code is as follows:$ Npm initThis command generates the package. json file, which is the metadata of the project.Run the following command:Copy codeThe Code is as follows:$ Npm install -- save hapiIt installs the hapi library under the project and writes the hapi
hash value. Once a change occurs, the message sent from the home page is displayed immediately, in addition, by setting the hash on the home page, you can transmit messages on the home page, so that two-way cross-origin traffic can be completed. The effect is as follows:Cross-fragmentBecause many websitesHashHas been used for other purposes, for such websitesHashCross-Origin will be very complex (fromHashTo merge and separate messages ). Therefore, we haveHashAn upgraded version:Cross-fragmentT
Some thoughtless fellow may be thread.interrupt by another method. Although its name seems to imply something, however, this approach does not break a running thread (which will be further explained later), as described in Listing a. It creates a thread and tries to stop the thread using the Thread.Interrupt method. The invocation of the Thread.Sleep () method provides ample time for the initialization and abort of the thread. The thread itself does not participate in any useful operations. clas
Read the excerpt from the JavaScript authoritative guide (Rhino) 9.7 to determine the object type. 1. typeof supports obtaining basic types, such as boolean, string, number, function, object, and undefined. Usage: varvtrue; // quot; string quot;, typeo...
Read the excerpt from the JavaScript authoritative guide (Rhino) 9.7 to determine the object type.
1. typeof
Basic types are supported, such as boolean,
First of all, I am not a master, at most or a half bucket of water, is into the JS doorNo experience, it's all a lesson.This time someone to say, "depend on, you ya half bucket of water, why teach us." Don't rush to scold first, listen to me first.You ask a university student to teach elementary school mathematics, not necessarily than a junior high school teaches well. Because college students have already passed through that stage, have forgotten how they came. And for junior high school stude
Native Bind methodUnlike the Bind method in jquery is just a simple binding event function, native JS in the bind () method is slightly more complex, the method is introduced in ES5, presumably is ie9+ and other modern browsers are supported (about ES5 features of the support case stamp here ECMAScript 5 Compatibility table), the authoritative guide mentions the implementation of the method using apply in ES3 (the chapter of the function in the JS authoritative guide), but it is not true to rest
The relationship between Javascript function scopes, calling objects, and closures is very subtle. There are many articles about them, but I don't know why many new users are hard to understand. I will try to express my understanding in a more popular language.Scope
Functions in Javascript belong to the lexical scope, that is, they run in the scope when they are defined, rather than in the scope when they are executed. This is what the rhino book says
When it comes to server-side JavaScript, many people first respond to Node. js. Java 6 contains the Script Engine, which comes with a JavaScript interpreter implemented by Mozilla Rhino-pure Java of the "castrated version.Use jrunscript to start the interpreter. The advantage of using Rhino is that you can use the JavaScript language for development, but you can also use the vast available Java library! It
The relationship between Javascript function scopes, calling objects, and closures is very subtle. There are many articles about them, but I don't know why many new users are hard to understand. I will try to express my understanding in a more popular language.Scope Functions in Javascript belong to the lexical scope, that is, they run in the scope when they are defined, rather than in the scope when they are executed. This is what the rhino book says
Awesome () { console.log (Bar.hello (Hungry). toUpperCase ()); } return { awesome:awesome };}); var bar = mymodules.get ("bar"), var foo = mymodules.get ("foo"), Console.log ( Bar.hello ("Hippo"));/Let me introd Uce:hippofoo.awesome (); Let ME Introduce:hippoOf course ES6 also introduced the module, making the call more convenient, look directly at the example barEg12Bar.jsfunction Hello (WHO) { return ' let me introduce: ' + Who;} Export Hello;Foo.jsImport only ' h
page can be obtained through asXml (). The HtmlUnitDriver simulates a non-interface browser, and the java engine rhino executes js. The HtmlUnitDriver uses rhino to parse js, since the browser with an interface is not started, the HtmlUnitDriver speed is faster than the previous three. No matter what the Driver is, it will take time to parse js, And the unused kernels have different support programs for js
1. Know RequirejsRequirejs official website (http://requirejs.org/) Description:Requirejs is a JavaScript file and module loader. It's optimized for in-browser use, but it can be used in the other JavaScript environments, like Rhino and Node. Using a modular script loader like Requirejs would improve the speed and quality of your code.Requirejs is a JS file to load the module, it is an optimized design on the browser side, and it can be used in other
: undefined, null, 0,-0, NaN, "" (empty string); all other values, both objects and arrays are converted to true;
17. The Boolean value contains a toString () method, which can return a string of true or false;
18. javascript has only six data types: Numbers, strings, Boolean values, null, undefined, and objects;
19. There is no block-level scope in javascript, And it is replaced by the function scope (see section 6 P57 of the rhino book );
20. Early
recommended to use Rhino (http://developer.mozilla.org/en/docs/Rhino ).
Note: Pay attention to the impact of function expressions and function declarations on scope chain.
7. closure
Closures are also common features of js. Generally, all internal variables will be recycled after a function is executed in java. However, in javascript, we can use some methods, make the internal variables of the executed fun
The functions in Javascript belong to the lexical scope, that is, the function is applied in the scope when it is defined.
The relationship between Javascript function scopes, calling objects, and closures is very subtle. There are many articles about them, but I don't know why many new users are hard to understand. I will try to express my understanding in a more popular language.Scope
Functions in Javascript belong to the lexical scope, that is, they run in the scope when they are defined, rat
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.