为什么ajax访问接口返回readystatus=4 status=404,不知道哪里出问题了 5C

$("#tog1").on("click",function(){
var _data= {
'mixMobile':'1212121212121'
};
$.ajax({
type : "post",
url : "Access-Control-Allow-Origin:http://crawler01.chinacloudapp.cn:8000/ListerineTmall/BindQueryCustomerServlet",
data : JSON.stringify(_data),
contentType : "application/json",
dataType : "json",
async: true,
error:function(msg) {
console.log(msg);
},
success:function(msg) {
console.log(msg);
}
});
});

这是error的日志 :readyState: 4, responseJSON: undefined, status: 404, statusText: "error"}

6个回答

Access-Control-Allow-Origin:需要在加载地址的服务器端设置,你在url中写有什么用?
如php是
header('Access-Control-Allow-Origin:*');

  • 也可以改成指定的域名
jslang
天际的海浪 或者你可以改用jsonp的方式比较好
接近 2 年之前 回复
jslang
天际的海浪 * 也可以改成指定的域名
接近 2 年之前 回复

Access-Control-Allow-Origin:需要在加载地址的服务器端设置****

404请求资源不存在,你看下请求地址是不是有问题

1.处理404,先把网址使用postman或者其他类似工具测试一下
2.跨域服务端设置即可

404资源找不到,你的请求路径url有问题啊

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Ajax请求。 服务器返回null

<div class="post-text" itemprop="text"> <p>JavaScript file. #form - html form. In var data - objects</p> <pre><code> $(document).ready(function() { $('#form').submit(function (e) { e.preventDefault(); var data = $('#form').serializeArray(); $.ajax({ type: "POST", url: "... .php", data: data, dataType: "json", success: function(d) { ... }, error: function(xhr, status, error) { alert(xhr.responseText + '| ' + status + '| ' +error); } }); }); }); </code></pre> <p>Php file</p> <pre><code>$data = json_decode($_POST['data']); $dataJson = json_encode($data); echo $dataJson; </code></pre> <p>Server returned Null. Why?</p> </div>

Ajax在表单提交时没有返回任何内容

<div class="post-text" itemprop="text"> <p>I am working in wordpress and on pressing the submit button I want the function to return result through ajax and result should be shown as an alert on the screen. But when I press submit nothing shows.</p> <p>Below is my code</p> <p>Ajax code (ajaxinsert.js file)</p> <pre><code>jQuery(document).ready(function(){ //////////////////////////////////////////////////////////// jQuery("#addimage").submit(function (e) { //form is intercepted e.preventDefault(); //serialize the form which contains secretcode var sentdataa = $(this).serializeArray(); //Add the additional param to the data sentdataa.push({ name: 'action', value: 'wp_up' }) //set sentdata as the data to be sent jQuery.post(yess.ajaxurl, sentdataa, function (rez) { //start of funciton alert(rez); return false; } //end of function , 'html'); //set the dataType as json, so you will get the parsed data in the callback }); // submit end here }); </code></pre> <p>HTML Form</p> <pre><code>&lt;form id="addimage" action="" method="post" enctype="multipart/form-data"&gt; &lt;input type="submit" name="upload" style="margin-bottom:15px;"&gt; &lt;/form&gt; </code></pre> <p>PHP code (I have used shortcode on the page for this code and below code is in functions.php file) add_shortcode( 'test', 'addimage' ); </p> <pre><code>function wp_up() { echo "zeeshanaslamdurrani"; exit(); } function addimage(){ add_action( 'wp_ajax_wp_up', 'wp_up' ); add_action( 'wp_ajax_nopriv_wp_up', 'wp_up'); // register &amp; enqueue a javascript file called globals.js wp_register_script( 'globalss', get_stylesheet_directory_uri() . "/js/ajaxinsert.js", array( 'jquery' ) ); wp_enqueue_script( 'globalss' ); // use wp_localize_script to pass PHP variables into javascript wp_localize_script( 'globalss', 'yess', array( 'ajaxurl' =&gt; admin_url( 'admin-ajax.php' ) ) ); } </code></pre> </div>

ajax 为什么里面最后返回的值都是最开始赋值的true

; (function ($) { $(document).ready(function () { $("form").submit(function () { var flag = true; //验证账号密码 //获取用户信息框 var $account = $("input[name=account]"); var $password = $("input[name=password]"); var userData = { account: $account[0].value, password: $password[0].value }; //清空验证信息 if (userData.account == "") { flag = false; swal({ title: "提示", text: "请输入账号" }); } if (userData.password == "") { flag = false; swal({ title: "提示", text: "密码不能为空" }); } if (userData.password != "" && userData.account != "") { $.ajax({ type: "POST", url: "/api/User/Login", data: { "account": userData.account, "psd": userData.password }, dataType: "json", error: function (data) { flag = false; alert("登录错误,请于管理员联系"); }, success: function (data) { if (data.code == 4) { flag = false; alert(data.errorMsg); } if (data.code == 2) { flag = false; alert(data.errorMsg); } } }); } aler(flag); //这里不管ajax里面怎么判断,这里都是true return flag; }); }); })(jQuery);

微信内网页ajax偶尔会进入error异常,有遇到过的小伙伴吗?

微信内网页的ajax请求偶尔会进入error异常,<br> 返回码:{"readyStatus":0,"status":0,"statusText":"error"},<br> 大家有遇到这个情况的吗? 这个问题最关键的是只有**偶然**概率才会进入error,其他大部分都是正常的,说明前台和后台都是没有问题的吧,找了很久原因也没有找到,如有有遇到过这个问题的小伙伴请告知一下这个问题是什么原因以及解决方案。谢谢! <br/><br/> 这个问题有了新的发现: 使用手机抓包工具,在微信客户端访问测试页面,发现当ajax进入error的时候,没有返回任何状态码,也就是该ajax请求没有得到服务器响应。抓包工具给的备注是:socket closed by remote peer <br/> ps:目前只在iphone微信客户端发现这个问题,在安卓手机微信端测试目前还没有发现这个问题。 <br/> 该问题还在进一步研究中,如果有遇到过这个问题的朋友请指点一下,谢谢了。

如何从 jQuery.ajax 获取响应状态代码?

<div class="post-text" itemprop="text"> <p>In the following code, all I am trying to do is to get the HTTP response code from a jQuery.ajax call. Then, if the code is 301 (Moved Permanently), display the 'Location' response header:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;title&gt;jQuery 301 Trial&lt;/title&gt; &lt;script src="http://code.jquery.com/jquery-1.5.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; function get_resp_status(url) { $.ajax({ url: url, complete: function (jqxhr, txt_status) { console.log ("Complete: [ " + txt_status + " ] " + jqxhr); // if (response code is 301) { console.log ("Location: " + jqxhr.getResponseHeader("Location")); // } } }); } &lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ $('a').mouseenter( function () { get_resp_status(this.href); }, function () { } ); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href="http://ow.ly/4etPl"&gt;Test 301 redirect&lt;/a&gt; &lt;a href="http://cnn.com/not_found"&gt;Test 404 not found&lt;/a&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Can someone point out where I am going wrong? When I check the 'jqxhr' object in Firebug, I can't find the status code, nor the 'Location' response header. I set the breakpoint on last line of 'complete'.</p> <p>Thanks much.</p> </div> <p>转载于:https://stackoverflow.com/questions/5344145/how-to-get-response-status-code-from-jquery-ajax</p>

ajax中success函数不执行的问题

$(document).ready(function(){ //注册 $("#signup").click(function(){ var User = $("#User").val(); var psw = $("#password").val(); if( User =='' || psw ==''){ alert("用户名及密码不能为空"); return false; }else{ $.ajax({ url: '../PHP/signup.php', type: 'post', dataType: 'json', data: { User:User, password:psw, }, success: function(){ }, }) }; }) }); 其他都没有问题,数据都写入了数据库,就是success函数不会执行,求教

如何在php中将下载文件的状态返回给ajax调用

<div class="post-text" itemprop="text"> <p>I'm trying to get status of dowmloaded file. using ajax i'm calling download.php where logic for file download is written. if reading of file is completed then i want to return status back to ajax call,</p> <p>here is my code,</p> <pre><code>$(document).ready(function(){ $.ajax({ url:"download.php", type:"post", success:function(data){ console.log(data); } }) }); </code></pre> <p>download.php</p> <pre><code>&lt;?php $file = "Sampletpc.xls"; header('Content-Description: File Transfer'); header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename='.basename($file)); $obj = readfile('uploads/'.$file); if ($obj !== false &amp;&amp; !connection_aborted()) { unlink('uploads/'.$file); $res['status'] = TRUE; echo json_encode($res); }else{ $res['status'] = FALSE; echo json_encode($res); } ?&gt; </code></pre> <p>But problem is , along with status, content of file also getting in ajax success method.</p> <p>like this..</p> <p><code> &lt;&gt;&lt;&gt;&gt;&lt;&gt;&lt;&lt;&lt;&gt;&lt;.&gt;.....{"status":true}..</code></p> <p>but i want only <code>{"status":true}</code></p> </div>

Ajax LARAVEL 419 POST错误

<div class="post-text" itemprop="text"> <p>I would really appreciate some help on this. I tried tons of solutions as posted in this forum, but I cannot get it to work. </p> <p>My ajax call is something like</p> <pre><code>$(document).ready(function() { $("#company").click(function() { $.ajax({ type: "POST", dataType:'html', url : "/company", success : function (data) { $("#result").html(data); } }); }); }); </code></pre> <p>I am calling the view through my route</p> <pre><code>Route::post('/company', 'Ajaxcontroller@loadContent'); </code></pre> <p>And controller</p> <pre><code>public function loadContent() { return view('listing.company')-&gt;render(); } </code></pre> <p>My company.blade.php is </p> <pre><code> @foreach ($companies as $company) &lt;div class="posting-description"&gt; &lt;h5 class="header"&gt;&lt;a href="#"&gt;&lt;/a&gt;{{$company-&gt;name}} &lt;/h5&gt; &lt;h5 class="header"&gt; {{$company-&gt;streetaddress}} {{$company-&gt;postalcode}}&lt;/h5&gt; &lt;p class="header"&gt; &lt;span class="red-text"&gt; &lt;?= $service; ?&gt; &lt;/span&gt; is available on &lt;span class="green-text"&gt;&lt;?php echo $date; ?&gt;&lt;/span&gt; &lt;/p&gt; @endforeach </code></pre> <p>I am getting this error</p> <pre><code>POST http://127.0.0.1:8234/company 419 (unknown status) </code></pre> </div>

用ajax加载出来的标签不能使用jq效果

直接上代码直观一点 ``` <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> </head> <script src="jquery-1.10.1.min.js" type="text/javascript"></script> <script> $(document).ready(function(){ $(".li a").click(function(){ $(this).toggleClass("on"); }); }); /*******************************/ function ajax() { $('#ajax1').load("ajax.php"); } /*******************************/ function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("ajax2").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","ajax.php",true); xmlhttp.send(); } </script> <style> .on {font-size:20px; font-weight:bold; color:#03C;} </style> <div class="ul"> <div><input type="button" value="方法1" onclick="ajax()" /> <input type="button" value="方法2" onclick="loadXMLDoc()" /></div> <div class="li"><a href="javascript:void(0)">点击变大</a></div> <div id="ajax1"></div> <div id="ajax2"></div> </div> ``` ``` <?php $html = '<div class="li"><a href="javascript:void(0)">点击没反应</a></div>'; echo $html; ?> ``` 有没有什么方法可以解决

jQuery AJAX - 加载方法失败时重定向到404页面

<div class="post-text" itemprop="text"> <p>My website loads all the pages through AJAX, with the jQuery <code>load</code> method. I did my best to adapt <a href="https://codyhouse.co/gem/animated-page-transition/" rel="nofollow noreferrer">this tutorial</a> to Wordpress.</p> <p>My problem today, is that <strong>when the <code>load</code> method returns an error</strong> (such as 404 because of a broken link), the AJAX transition doesn't finish, and the <strong>page doesn't change</strong> at all. </p> <p><strong>- How can I execute something when the load method fails ?</strong></p> <p><em>EDIT</em> : I found a solution for that in the docs.</p> <pre><code>section.load(url + ' .cd-main-content &gt; *', function (response, status, xhr) { //the code } </code></pre> <p>Now it doesn't help me as I thought it would. Because, <code>response</code> returns the 404 page content as expected, <code>status</code> returns error and <code>xhr</code> [object OBJECT]. What I don't get is why the <code>response</code> html isn't being loaded in the div...</p> <p><strong>- How can I know this is a 404 error ?</strong></p> <p>Successfully checked for a 404 error using :</p> <pre><code>if (status == "error" &amp;&amp; xhr.status == "404") { console.log('this is a 404 error'); } </code></pre> <p>I tried executing my code in the <code>load</code> function conditionnaly if the <code>xhr.status</code> is <code>404</code> or if the <code>status</code> is <code>success</code>, with no luck. Still not working. Can anybody helppp?</p> <p><strong>- How can I redirect to wordpress's 404.php page with jQuery ?</strong> </p> <p><strong>- How should I treat other error codes ?</strong> </p> <p>Lots of questions sorry... I don't know where to start</p> <p><strong>Here's the Javascript :</strong> </p> <pre><code>jQuery(document).ready(function (event) { // select website's root url var rootUrl = aws_data.rootUrl; var isAnimating = false, newLocation = '', firstLoad = false; // Internal Helper $.expr[':'].internal = function(obj, index, meta, stack){ // Prepare var $this = $(obj), urlinternal = $this.attr('href')||'', isInternalLink; // Check link isInternalLink = urlinternal.substring(0,rootUrl.length) === rootUrl || urlinternal.indexOf(':') === -1; // Ignore or Keep return isInternalLink; }; //trigger smooth transition from the actual page to the new one, excluding event on non relevant links $('main').on('click', 'a[href]:internal:not(.no-ajaxy,.love-button,[href^="#"],[href*="#respond"],[href*="wp-login"],[href*="wp-admin"])', function (event) { event.preventDefault(); //detect which page has been selected var newPage = $(this).attr('href'); //if the page is not already being animated - trigger animation if (!isAnimating) changePage(newPage, true); firstLoad = true; }); //detect the 'popstate' event - e.g. user clicking the back button $(window).on('popstate', function (e) { if (firstLoad) { /* Safari emits a popstate event on page load - check if firstLoad is true before animating if it's false - the page has just been loaded */ var newPageArray = location.pathname.split('/'), //this is the url of the page to be loaded //newPage = newPageArray[newPageArray.length - 1]; newPage = window.location.href; if (!isAnimating &amp;&amp; newLocation != newPage) changePage(newPage, false); } firstLoad = true; }); function changePage(url, bool) { isAnimating = true; // trigger page animation $('body').addClass('page-is-changing'); $('.cd-loading-bar').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function () { loadNewContent(url, bool); newLocation = url; $('.cd-loading-bar').off('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend'); }); //if browser doesn't support CSS transitions if (!transitionsSupported()) { loadNewContent(url, bool); newLocation = url; } } function loadNewContent(url, bool) { // I don't understand the line below url = ('' === url) ? rootUrl : url; var newSection = 'cd-' + url.replace(rootUrl, ""); var section = $('&lt;div class="cd-main-content ' + newSection + '"&gt;&lt;/div&gt;'); // this ajax request helps me applied Wordpress classes on the body element, which is not being reloaded below $.ajax({url: url, success: function(data){ data = data.replace("&lt;body", "&lt;container").replace("body&gt;", "container&gt;"); var classes = $(data).filter("container").attr("class"); $("body").attr("class", classes + " page-is-changing"); } }); section.load(url + ' .cd-main-content &gt; *', function (event) { // load new content and replace &lt;main&gt; content with the new one $('main').html(section); var delay = 1200; //functions to execute after DOM is loaded $(document).foundation(); makeFooterSticky(); window.scrollTo(0, 0); $(".ajax-load-more-wrap").ajaxloadmore(); //ga('send', 'pageview', window.location.pathname); setTimeout(function () { //wait for the end of the transition on the loading bar before revealing the new content $('body').removeClass('page-is-changing'); $('.cd-loading-bar').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function () { isAnimating = false; $('.cd-loading-bar').off('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend'); }); if (!transitionsSupported()) isAnimating = false; }, delay); if (url != window.location &amp;&amp; bool) { //add the new page to the window.history //if the new page was triggered by a 'popstate' event, don't add it window.history.pushState({ path: url }, '', url); } }); } function transitionsSupported() { return $('html').hasClass('csstransitions'); } }); </code></pre> </div>

为什么从AJAX返回的值几乎立即消失?

<div class="post-text" itemprop="text"> <p>this is my server-side code:</p> <p><strong>modify_emp.php</strong></p> <pre><code>&lt;?php echo $_POST[id]; ?&gt; </code></pre> <p>And this is my Javascript in my html page:</p> <pre><code>&lt;script&gt; $(document).ready(function () { var alreadyClicked = false; $('.element').hover( //mouseenter function function(){ $('.element').click( function(){ $(this).css("color","blue"); var objName = $(this).attr('name'); var objColumn = $(this).attr('id'); if(!alreadyClicked){ alreadyClicked = true; $(this) .prepend('&lt;form method="POST" class="newInput"&gt;&lt;input type="text" name="newInput" style="width:140px"&gt;&lt;/input&gt;&lt;/form&gt;'); var elemento = $(".newInput"); var position = elemento.position(); $(".newInput").css({ 'position': 'absolute', 'top': position.top + 15, 'opacity':0.9, 'z-index':5000, }) .focus(); //on enter keypress $(document).keypress(function(e) { if(e.which == 13) { $.ajax({ url: 'modify_imp.php', type: 'post', data: { id : objName, column : objColumn }, success: function(data, status){ $("#debug").html(data); } }); } }); } //if (!alreadyClicked) end }); //end mouseenter function }, //mouseleave function function () { alreadyClicked = false; $(this).css("color","red"); $(".newInput").remove(); } ); //end .hover </code></pre> <p>});</p> <p></p> <p>The <code>debug</code> is a <code>&lt;div id="debug"&gt; &lt;/div&gt;</code> at the end of my html page where i want to show my response from server. When i press 'ENTER' I can actually see the value for 0.1s inside that div, but then it disappears.</p> <p>I already tried to pass the return value to a local or global variable but it didn't work. For some reason the value inside <code>response</code> is lost after 0.1s, even if i pass it to another variable elsewhere. </p> <p>Can someone explain me why and how can i "store" the server response?</p> <p>EDIT: Just edited with my entire <code>&lt;script&gt;</code> </p> </div>

如何在下一个ajax调用中从一个ajax调用中访问返回的变量

<div class="post-text" itemprop="text"> <p>I want to access returned variable from one ajax call in another ajax call and want to repeat the second ajax call continuously. my code is below, and the required variables are mentioned in code comments.</p> <pre><code>&lt;script type="text/javascript" language="javascript"&gt; $( document ).ready(function() { $.ajax({ url : "functions.php?id=enter_game&amp;name=&lt;?php echo $name; ?&gt;", type : "GET", //dataType : 'json', success: function(result){ if(result){ $("#game_status").html(result["game"]); var limit = Object.keys(result).length - 4; for(var x = 1; x &lt;= limit ; x++) { $("#users").append('&lt;li&gt;'+result[x]["name"]+'&lt;/li&gt;'); //$("#users").append('&lt;li&gt;abd&lt;/li&gt;'); } // I want to access these variables in next ajax call var user_id = result["current_user_id"]; var word_id = result["word_id"]; } } }); // start updating continuously var timer, delay = 1000; // time in milli seconds timer = setInterval(function(){ $.ajax({ type : 'GET', // the variables from previous ajax call result should be avaialable here // and only this ajax call should be made upon delay time. // previous ajax call should not be made more than once. url : 'functions.php?user_id='+user_id+'&amp;word_id='+word_id, //dataType: 'json', success : function(data){ if(data){ $("#game_status").html(Math.floor((Math.random() * 10) + 1)); } }, error: function( xhr, status, errorThrown ) { alert( "Sorry, there was a problem! Error: " + errorThrown + ", Status: " + status + ", xhr: ," + xhr); console.log( "Error: " + errorThrown ); console.log( "Status: " + status ); console.dir( xhr ); } }); }, delay); }); &lt;/script&gt; </code></pre> <p>Any help would be much appreciated.</p> </div>

Ajax返回0,(没有互联网连接),即使使用Internet Access也是如此

<div class="post-text" itemprop="text"> <p><strong>J-query Ajax call</strong> returns 0 in error function. Usually 0 error is returned when there is no internet connection. Even though my Internet connection is perfectly fine. The problem is it works fine on friend's machine. And on friend's machine, if I turn wifi off, after loading page , as it should work it do return no internet connection on his machine.</p> <pre><code>$(document).ready(function(){ $("#forget_form").submit(function(event){ event.preventDefault(); $('#result').html('Processing...'); $.ajax({ url: '&lt;?php echo base_url(); ?&gt;Index/forget', type:'POST', data: { email: $("#email").val(), }, success:function(data){ $('#result').html(data) }, error: function (jqXHR, exception) { var msg = ''; if (jqXHR.status === 0) { msg = 'There is no Internet connection.'; } else if (jqXHR.status == 404) { msg = 'Requested page not found. [404]'; } else if (jqXHR.status == 500) { msg = 'Internal Server Error Occured. [500].'; } else if (exception === 'parsererror') { msg = 'Requested JSON parse failed.'; } else if (exception === 'timeout') { msg = 'Request Time out reached.'; } else if (exception === 'abort') { msg = 'Ajax request aborted.'; } else { msg = 'Uncaught Error. ' + jqXHR.responseText; } $('#result').html(msg); }, }); });}); </code></pre> </div>

如何确保无法访问处理ajax请求的PHP脚本并对用户进行身份验证?

<div class="post-text" itemprop="text"> <p>I have an jquery ajax request that calls a PHP script that will send an email. This email is happening from the admin, so a user must be authenticated in order to be able to do this. I've got two questions:</p> <ol> <li>How can I lock this PHP file down from somebody being able to go directly to the path in the browser and keep submitting it? </li> <li>How do I only run the file if the user is authenticated?</li> </ol> <p>PHP: </p> <pre><code>$emailer = new GiftCardEmailer(); $emailer-&gt;SendGiftCardEmail($gift_card); </code></pre> <p>jQuery:</p> <pre><code> $(document).ready(function() { var status = $('p#status'); status.hide(); $('#sendemail').click(function() { $.ajax({ url: 'mail-handler.php', beforeSend: function() { status.fadeIn(); status.html('&lt;img src="images/ajax-loader.gif" /&gt;'); }, success: function( data ) { if (console &amp;&amp; console.log){ console.log( 'Sample of data:', data.slice(0,100) ); } status.html('Email Sent Successfully.'); setTimeout(function() { status.fadeOut(); }, 4000); } }); }); }); </code></pre> </div>

Jquery ajax返回一个带有responsetext的json对象为null

<div class="post-text" itemprop="text"> <p>I am trying to use ajax in bootstrap form. I am using PHP on the serve side. The ajax method successfully posts the data but fails to receive any data. The status shown is 200 and ready state is also 4 but still the error function is executed. The PHP script has the header as application/json and uses json_encode. But it seems that the ajax never gets the object that the server sent! Please help.</p> <p>this is the jquery: ` </p> <pre><code> $.ajax({ url:'http://localhost/Texephyr/startbootstrap-agency-1.0.5/login.php', method:'POST', data:$('#log-in').serialize(), dataType:'json', success:function(msg){ if(msg =="true"){ window.location.assign("admin/pages/index.php"); console.log(msg); } else{ if(msg == "false-p"){ $('#password-error').append('Invalid Password'); console.log(msg); } else{ $('#email-error').append('Invalid Username'); console.log(msg); } } }, error: function(msg){ $('#email-error').append("There was an Error!"); console.log(msg) } });` </code></pre> <p>and this is the PHP script: `</p> <pre><code> &lt;?php header("Content-type: application/json"); session_start(); include("db_config.php"); $json = array("txt" = &gt;"false"); if(isset($_POST['username']) &amp;&amp; isset($_POST['password'])){ $query = "SELECT id,f_name,l_name,password FROM users WHERE email = '$uname'"; $login-status = $db-&gt;query($query); if($login-status-&gt;num_rows ===1){ $result = $login-status-&gt;fetch_assoc(); if(password_verify($passd,$result["password"])){ $_SESSION["fname"] = $result["first_name"]; $_SESSION["lname"] = $result["last_name"]; $_SESSION["id"] = $result["id"]; $json["txt"]="true"; echo json_encode($json); } else{ $json["txt"]="false-p"; echo json_encode($json); } } else { $json["txt"] = "false"; echo json_encode($json); } }else{ $json["txt"]="false"; echo json_encode($json); } ?&gt; </code></pre> <p>`</p> </div>

尽管有正确的查询字符串参数,但Ajax GET请求为空

<div class="post-text" itemprop="text"> <p>Using a simple Ajax GET request to retrieve some data, it successfully checks <code>if($request-&gt;ajax()) {}</code> but then fails any validation because there is no data in the <code>Request $request</code> variable. This happens only on the production server, on localhost everything works fine.</p> <p>The console shows the intended URL <code>https://example.com/employeeInfo?id=1</code>, then error 422 (Unprocessable Entity). Output from <code>error: function(jqxhr, status, exception) { alert('Exception:', exception); }</code> gives an empty alert message.</p> <p><strong>View</strong></p> <pre><code>&lt;script&gt; (function ($) { $(document).ready(function() { $(".team-pic").off("click").on("click", function() { $id = $(this).data('id'); // Get data $.ajax({ type: 'GET', url: 'employeeInfo', data: {'id':$id}, success: function(data){ var obj=$.parseJSON(data); // Show output... }, error: function(jqxhr, status, exception) { alert('Exception:', exception); } }); }); }); }(jQuery)); &lt;/script&gt; </code></pre> <p><strong>Route</strong></p> <pre><code>Route::get('/employeeInfo', 'EmployeeController@get'); </code></pre> <p><strong>Controller</strong></p> <pre><code>public function get(Request $request) { if($request-&gt;ajax()) { $this-&gt;validate($request, [ 'id' =&gt; 'required|integer', ]); // Id $employee = Employee::find(request('id')); // Create output $data = ... echo json_encode($data); } } </code></pre> </div>

为什么AJAX不能用于for循环

<div class="post-text" itemprop="text"> <p>I am working on small application which is supposed to generate working schedules and count hours: <a href="http://www.ankieta.gorna.pl/kalendarz.php" rel="nofollow">http://www.ankieta.gorna.pl/kalendarz.php</a>. I wrote the function <code>kalkulacja()</code> which is supposed to count each row's inputs and output results via ajax. I can't figure out why it does only the last row, throwing error in all previous cases. I would appreciate your help.</p> <pre><code>&lt;body onload="init();"&gt; &lt;div class="container"&gt; &lt;button type="button" id="tydz_minus" name="tydz_minus"&gt;&lt;&lt;/button&gt; &lt;button type="button" id="tydz_plus" name="tydz_plus"&gt;&gt;&lt;/button&gt; &lt;table id="tabela"&gt; &lt;thead&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td class="tydz" id="pon"&gt;&lt;/td&gt; &lt;td class="tydz" id="wt"&gt;&lt;/td&gt; &lt;td class="tydz" id="sr"&gt;&lt;/td&gt; &lt;td class="tydz" id="czw"&gt;&lt;/td&gt; &lt;td class="tydz" id="pn"&gt;&lt;/td&gt; &lt;td class="tydz" id="sob"&gt;&lt;/td&gt; &lt;td class="tydz" id="ndz"&gt;&lt;/td&gt; &lt;td&gt;tydz.&lt;/td&gt; &lt;td&gt;miesiąc&lt;/td&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody id="tbody"&gt; &lt;?php $dane = $_POST["staff"]; $link = mysqli_connect("") or die("Error " . mysqli_error($link)); if($link) { echo ""; } else { echo "nie ok"; } $result = mysqli_query($link,"SELECT staff FROM Staff"); while($row = mysqli_fetch_array($result)) { $pracownik = $row['staff']; print "&lt;tr&gt;&lt;td&gt;" . $pracownik . "&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td&gt;&lt;input id='time' type='text'&gt;&lt;input id='time' type='text'&gt;&lt;/td&gt;&lt;td id='ww'&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;"; } ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;input name="staff" id="staff" type="text"/&gt; &lt;input type="submit" value="Dodaj pracownika" onclick="save_staff();"/&gt; &lt;/div&gt; &lt;script&gt; $(document).ready(function() { $('#tbody tr td #time').datetimepicker({ datepicker:false, format:'H:i' }); }); &lt;/script&gt; &lt;/body&gt; function init() { var zlap_plus = document.getElementById("tydz_plus"); var zlap_minus = document.getElementById("tydz_minus"); zlap_plus.onclick = plus_tydz; zlap_minus.onclick = minus_tydz; dni(); for(var e = 0 ; e &lt; 19 ; e++) { kalkulacja(e); } } var dzis = new Date(); var day = 86400000; var pon = Date.now() - ((dzis.getDay()*day)-day); //zwraca pierwszy dzień tygodnia var pierwszy = Date.now() - ((dzis.getDate() - dzis.getDay())*day); //zwraca pierwszy dzień miesiąca //Funkcja tworzy nagłówek tabeli i generuje daty function dni() { document.getElementById("pon").innerHTML = "&lt;div id='cell'&gt;" + new Date(pon).toLocaleDateString() + "&lt;/div&gt;"; document.getElementById("wt").innerHTML = new Date(pon + day).toLocaleDateString(); document.getElementById("sr").innerHTML = new Date(pon + (2*day)).toLocaleDateString(); document.getElementById("czw").innerHTML = new Date(pon + (3*day)).toLocaleDateString(); document.getElementById("pn").innerHTML = new Date(pon + (4*day)).toLocaleDateString(); document.getElementById("sob").innerHTML = new Date(pon + (5*day)).toLocaleDateString(); document.getElementById("ndz").innerHTML = new Date(pon + (6*day)).toLocaleDateString(); } //Funkcja przesuwa kalendarz o tydzień function plus_tydz() { pon = pon+7*day; return dni(); } //Funkcja cofa kalendarz o tydzień function minus_tydz() { pon = pon-7*day; return dni(); } //Funkcja tworzy nowy obiekt ajax var ajax = createXmlHttpRequestObject(); function createXmlHttpRequestObject() { var ajax; if(window.ActiveXObject) { try { ajax = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { ajax = false; } } else { try { ajax = new XMLHttpRequest(); } catch(e) { ajax = false; } } if (!ajax) alert("Nie uadło się utworzyc obiektu"); else return ajax; } //Funkcja zapisuje w bazie danych nowego pracownika via ajax function save_staff() { if(ajax) { var staff = document.getElementById("staff").value; var dane = "staff=" + staff; ajax.open("POST", "kalendarz_dane.php", true); ajax.onreadystatechange = handle; ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); ajax.send(dane); } } //Funkcja obsługuje odpowiedź serwera z funkcji save_staff function handle() { if(ajax.readyState == 4) { if(ajax.status == 200) { try { document.getElementById("tbody").innerHTML = ajax.responseText; }catch(e) { alert(e.toString()); } } else { alert(ajax.statusText); } } } function kalkulacja(e) { var cal = 0; var len = document.getElementById("tbody").rows.length; for(var i = 1 ; i &lt; 8 ; i++) { var x = document.getElementById("tbody").rows[e].cells[i].children[0].value; var y = document.getElementById("tbody").rows[e].cells[i].children[1].value; var timeStart = new Date("01/09/1970 " + x).getTime(); var timeEnd = new Date("01/09/1970 " + y).getTime(); var workday = (timeEnd - timeStart) / 3600000; cal += workday; } if(ajax) { var mk = "cal=" + cal; ajax.open("GET", "kalendarz_time.php?cal=" + cal, true); ajax.onreadystatechange = handletime; ajax.send(null); } else { setTimeout(kalkulacja(e), 2000) } function handletime() { if(ajax.readyState == 4) { if(ajax.status == 200) { try { var s = 8 + (e*10) document.getElementById("tbody").getElementsByTagName("td").item(s).innerHTML = ajax.responseText; setTimeout(kalkulacja(e), 2000); }catch(e) { alert(e.toString()); } } else { alert(ajax.statusText); } } } } </code></pre> </div>

解析从html到ajax的返回数据

<div class="post-text" itemprop="text"> <p>I have some problem with the returned value of ajax.</p> <p>this is the ajax code: </p> <pre><code>$(document).ready(function() { var request; $("#flog").submit(function(event) { if(request) request.abort(); event.preventDefault(); var form = $(this); var serializedData = form.serialize(); var btnname = $('#log').attr('name'); var btnval = $('#log').val(); var btn = '&amp;'+btnname+'='+btnval; serializedData += btn; request = $.ajax({ type: form.attr('method'), url: form.attr('action'), data: serializedData, }); request.done(function(data, status, jdXHR) { alert(data); }); request.fail(function(jdXHR, status, error) { }); }); }); </code></pre> <p>it takes data from a form and send it to another page.</p> <p>this is the second page: </p> <pre><code>&lt;?php include 'head.php'; ?&gt; &lt;?php if($_POST['login']) { session_regenerate_id(true); $con = mysqli_connect("localhost", "Alessandro", "ciao", "freetime") or die('Could not connect: ' . mysqli_error($con)); $query = 'SELECT * FROM users WHERE username="' . $_POST['user'] . '"'; $result = mysqli_query($con, $query) or die('Query failed: ' . mysqli_error($con)); if(mysqli_num_rows($result) == 0) { mysqli_close($con); session_unset(); session_destroy(); $res = false; return $res; } $query = 'SELECT password FROM users WHERE username="' . $_POST['user'] . '"'; $result = mysqli_query($con, $query) or die('Query failed: ' . mysqli_error($con)); $line = mysqli_fetch_array($result, MYSQL_ASSOC); if(md5($_POST['password']) != $line['password']) { mysqli_close($con); session_unset(); session_destroy(); return false; } ?&gt; &lt;?php include 'foot.php'; ?&gt; </code></pre> <p>and in .done the returned data is all the html page. How can I retrieve only a data, like $res? I tried with json_encode() but with no results. If in the second page I delete the lines include 'head.php' and include 'foot.php' it works. But I need that the secon page is html, too. Somenone can help me?</p> </div>

Ajax在WordPress中不起作用

<div class="post-text" itemprop="text"> <p>I am using ajax in WordPress and it is not working so can someone please help me out of this unwanted situation.</p> <p>Here is my php code..</p> <pre><code>&lt;div class="Publish"&gt; &lt;h2&gt;Published Pages&lt;/h2&gt; &lt;?php $pages = new WP_Query(array('post_type'=&gt;'page','post_status'=&gt;'publish','posts_per_page'=&gt;'-1','order'=&gt;'ASC')); ?&gt; &lt;ul id="dashboard-page"&gt; &lt;?php if($pages -&gt; have_posts()){ while($pages -&gt; have_posts()){ $pages-&gt;the_post(); ?&gt; &lt;li id="&lt;?php the_ID();?&gt;" class="dashboard-item"&gt;&lt;?php echo the_title(); ?&gt;&lt;/li&gt; &lt;?php } } ?&gt; &lt;/ul&gt; &lt;input class="button-primary" id="submit" type="submit" name="submit" value="Click Me" /&gt; &lt;/div&gt; </code></pre> <p>And here is the hook part.</p> <pre><code> function ajax_action_stuff() { // doing ajax stuff update_option('vipin'); die(); // stop executing script } add_action( 'wp_ajax_ajax_action', 'ajax_action_stuff' ); // ajax for logged in users add_action( 'wp_ajax_nopriv_ajax_action', 'ajax_action_stuff' ); // ajax for not logged in users ?&gt; </code></pre> <p>Here is ajaxurl code...</p> <pre><code>&lt;?php add_action('wp_head','pluginname_ajaxurl'); function pluginname_ajaxurl() { ?&gt; &lt;script type="text/javascript"&gt; var ajaxurl = "&lt;?php echo admin_url('admin-ajax.php'); ?&gt;"; &lt;/script&gt; &lt;?php } </code></pre> <p>And here is my jquery code..</p> <pre><code>jQuery(document).ready(function(){ jQuery('#submit').click(function(){ var i = 0;var a = []; jQuery('#dashboard-page li').each(function(){ a[i] = jQuery(this).attr('id'); str = a.toString(); i++; }); jQuery.ajax({ method: "POST", url: ajax_object.ajax_url, data: { action: "ajax_action", pageorder: str } }); }); }); </code></pre> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

C++11:一些微小的变化(新的数据类型、template表达式内的空格、nullptr、std::nullptr_t)

本文介绍一些C++的两个新特性,它们虽然微小,但对你的编程十分重要 一、Template表达式内的空格 C++11标准之前建议在“在两个template表达式的闭符之间放一个空格”的要求已经过时了 例如: vector&lt;list&lt;int&gt; &gt;; //C++11之前 vector&lt;list&lt;int&gt;&gt;; //C++11 二、nullptr ...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

【阿里P6面经】二本,curd两年,疯狂复习,拿下阿里offer

二本的读者,在老东家不断学习,最后逆袭

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

微软为一人收购一公司?破解索尼程序、写黑客小说,看他彪悍的程序人生!...

作者 | 伍杏玲出品 | CSDN(ID:CSDNnews)格子衬衫、常掉发、双肩包、修电脑、加班多……这些似乎成了大众给程序员的固定标签。近几年流行的“跨界风”开始刷新人们对程序员的...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

我说我懂多线程,面试官立马给我发了offer

不小心拿了几个offer,有点烦

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐