The last time I encountered a problem when I made a shop sales comparison with the crystal table, I had not solved it.Today, a friend of mine also encountered this problem. After reading this question, he finally found a solution. The solution is as follows.
Current situation: the shop sales comparison report (Flash file) is currently in the IIS Directory of 34. This report needs to access the WS data of 61, but the following problems may occur:
Pro
In a recent project, you need to access another Web page across domains and require incoming data, such as a large amount of data to be passed in, that passes through the post data method, because the Get method can only transfer data within 2KB.Here's how to share this functionality:
#region request to execute a Remo
Ajax determines whether the returned data is JSON when the request is successful, response Content-type is set to Application/json, and the data is in the standard JSON formatjquery versionFlask code Example@app. Route ('/test ', methods=[' GET ', ' POST ') def test (): a = [] a.append (Newobject (). __dict__) # Set Content-type resp=response (Json.dumps (a), mimetype= ' Application/json ') #
Myurl = "Http://localhost:8090/api/test?callback=JSON_CALLBACK";$http. JSONP (Myurl). Success (function (data) {alert (data);});Using the $HTTP.JSONP function in 1.angularJS2. Specify the callback and callback function names, and when the function name is Json_callback, the success callback function is called and the Json_callback must be all uppercase.3. You can also specify a different callback function,
1, file upload, picture upload, Third-party uploadify plug-ins, http://www.uploadify.com/about/
2, the use of IFrame upload files, submit the form, the main idea is:
A, JS create form form, IFRAME, add to the body, form target and the name of the IFrame consistent.
B, Form form to update the data, submit submission
C, if uploaded files, pictures, form inside add input-file elements, Binding onchange event, JS Trigger, add submit event inside OnCh
[CMS system] dededecms data archiving cannot read the bound level 2 domain name
0) {$ where = "and typeid = $ tid" ;}$ pagesize = 30; // 30 data records per page by default $ maxpages = 9; // $ pagepre = 4; // use $ pageno = isset ($ _ GET ["pageno"]) for pagination? Intval ($ _ GET ["pageno"]): 1; $ csql = "select count (*) as c from #@__ archives, ##__ arctyp
deep thought, but also deliberately to these two stories arerecorded in their ownBLOGon. ##########I'm the dividing line .##########Reference Three2:The algorithm is not my director. The greedy algorithm is probably meant to solve a problem that requires a large amount of computation to solve, do not bother to find the best solution, but useTo construct the optimal solution graduallythe method. At each stage,make a seemingly optimal decision.(under certain standards). The basis for making greed
PHP Object-oriented sample code sharing on domain model and data mapper
/* Here to explain because I am more lazy blog related article content more is to
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.