jQuery TypeError: text is not a function

本人在做jQuery 测试删除表格的行数之后,重新排序,用text()方法报错,用html()方法也报错,但是可以使用append()方法,新手问题,求解。

function delTr(tempRow){
$("#fsoSiTr"+tempRow).remove();
var $fsoSiTrs = $("#fsoIsTbl tr:gt(0) td:first-child");
for(var i=0; i<$fsoSiTrs.length-1;i++){
/* $fsoSiTrs[i].innerHTML = i+1; */ //这样操作没问题
$fsoSiTrs[i].text(i+1); //这种方式操作就会报错:TypeError: $fsoSiTrs[i].text is not a function
}
}

5个回答

$fsoSiTrs是jQuery对象,你用了[i]就转变为了dom对象,你innerHTML是dom对象的方法所以$fsoSiTrs[i].innerHTML不报错;
text()是jQuery对象上的方法,在dom对象上,原生并不支持这个方法,所以报错text不是一个函数。
要想使用text()函数,你就得把这个dom对象转为jQuery对象,最简单就是$($fsoSiTrs[i]).text() 用$(任意dom对象)就能转为jquery对象。

xiaopengpo
雨田共晨 JS代码:function proCountBlur(fbConsumption,elem){ var trIndex = elem.parentNode.parentNode.rowIndex; var $inputNumber = $("#fsoIsTbl tr:eq("+trIndex+") td input[type=number]"); $inputNumber[1].value = $inputNumber[0].value * fbConsumption; }
接近 3 年之前 回复
stopllL
white_g 回复雨田共晨: 信息太少了,js代码,html结构都贴一下
接近 3 年之前 回复
xiaopengpo
雨田共晨 好像是:jQuery创建的行就可以取到,页面上本身的行就娶不到一样。但是这是为啥啊?大神还在吗?
接近 3 年之前 回复
xiaopengpo
雨田共晨 这两句有什么区别呢? jQuery取不到值,DOM就可以
接近 3 年之前 回复
xiaopengpo
雨田共晨 var trIndex = elem.parentNode.parentNode.rowIndex;
接近 3 年之前 回复
xiaopengpo
雨田共晨 var $trIndex = $(elem).parent().parent().index();
接近 3 年之前 回复
stopllL
white_g 回复雨田共晨: 是的,我的错,打错啦
接近 3 年之前 回复
xiaopengpo
雨田共晨 $fsoSiTrs.eq[i].text(i+1) 应该改成 $fsoSiTrs.eq(i).text(i+1) ^_^
接近 3 年之前 回复
xiaopengpo
雨田共晨 回复鸟与礁: 嗯嗯,明白!我一会儿多用几种方法试试,之前都是用原生态JS,我现在正在学习jQuery这块,比较小白,谢谢指点。
接近 3 年之前 回复
stopllL
white_g 回复雨田共晨: 没事。同时你可以使用$fsoSiTrs.eq[i];这样一样可以选择第几个元素,并且选出来就是jquery对象。这样选出来的就没法使用dom对象的方法。把dom对象和jquery对象以及什么方法是哪里的分开,以后就不会犯这样的问题了
接近 3 年之前 回复
xiaopengpo
雨田共晨 非常感谢,不但解决了我的问题,还点明我对Dom对象和jQuery对象的区分的方式,书上也看到有这个说法,当时还没有特别明白,再次感谢
接近 3 年之前 回复

[]后是dom对象,不是jquery,dom对象没有text,html方法,改为eq获取


$fsoSiTrs[i].text(i + 1);
===》
$fsoSiTrs.eq(i).text(i + 1);
qq_41615452
qq_41615452 棒棒哒
11 个月之前 回复
xiaopengpo
雨田共晨 谢谢!
接近 3 年之前 回复

$fsoSiTrs[i].html()

html()方法也报错,就是append()不报错,我就奇怪了

就这么沉下去了吗? 寻大神指教

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
jquery中报Uncaught TypeError: pie is not a function

``` $(function(){ var name = new Array(); var value=new Array(); var count = new Array(); $.post( "BaseAction/SheetAction/ContributeSheetPie", function(data) { name=data.name; value=data.value; pie(value,name); }, "json" ); $('#show').click(function(){ var i=1; var pie=document.getElementById('pie'); var bar=document.getElementById('bar'); if(i==1) { var count = new Array(); pie.style.display="none"; bar.style.display="block"; $.post( "BaseAction/SheetAction/ContributeSheet", function(data) { name=data.name; count=data.count; bar(name,count);//Uncaught TypeError: bar is not a function }, "json" ); i=0; } if(i==0) { pie.style.display="block"; bar.style.display="none"; $.post( "BaseAction/SheetAction/ContributeSheetPie", function(data) { name=data.name; value=data.value; pie(value,name);//Uncaught TypeError: pie is not a function }, "json" ); } }); }); //---------------------------pie饼形分析图-------------------------------------------------------------------------------- function pie(value,name) { // 路径配置 require.config({ paths: { echarts: '<%=path%>/js/echarts/build/dist' } }); require( [ 'echarts', 'echarts/chart/pie', 'echarts/chart/funnel' ], function (ec) { // 基于准备好的dom,初始化echarts图表 var myChart = ec.init(document.getElementById('pie')); var option = { title : { text: '顾客贡献', x:'center' }, tooltip : { trigger: 'item', formatter: "{a} <br/>{b} : {c} ({d}%)" }, legend: { orient : 'vertical', x : 'left', data:name }, toolbox: { show : true, feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, magicType : { show: true, type: ['pie', 'funnel'], option: { funnel: { x: '25%', width: '50%', funnelAlign: 'left', max: 1548 } } }, restore : {show: true}, saveAsImage : {show: true}, } }, calculable : true, series : [ { name:"订单数", type:"pie", radius : '55%', center: ['50%', '60%'], data :value } ] }; // 为echarts对象加载数据 myChart.setOption(option); } ); }; //---------------------------pie饼形分析图-------------------------------------------------------------------------------- function bar(name,count) { // 路径配置 require.config({ paths: { echarts: '<%=path%>/js/echarts/build/dist' } }); // 使用 require( [ 'echarts', // 使用柱状图就加载bar模块,按需加载 'echarts/chart/line', 'echarts/chart/bar' ], function (ec) { // 基于准备好的dom,初始化echarts图表 var myChart = ec.init(document.getElementById('bar')); var option = { tooltip: { trigger:'axis', }, legend: { data:['贡献度'] }, toolbox: { show : true, feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, magicType : {show: true, type: ['line', 'bar']}, restore : {show: true}, saveAsImage : {show: true} } }, calculable : true, xAxis : [ { type : 'category', data : name } ], yAxis : [ { type : 'value' } ], series : [ { "name":"订单数", "type":"bar", "data":count, markPoint : { data : [ {type : 'max', name: '最大值'}, {type : 'min', name: '最小值'} ] }, markLine : { data : [ {type : 'average', name: '平均值'} ] } } ] }; // 为echarts对象加载数据 myChart.setOption(option); } ); }; </script> ```

jQuery toggle连续点击事件报错 "Uncaught TypeError: undefined is not a function"

<html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="js/jquery2.js" ></script> <script> $(document).ready(function(){ $('#bd').toggle( function(){ $("body").css("background-color","aliceblue"); }, function(){ $("body").css("background-color","aquamarine"); }, function(){ $("body").css("background-color","bisque"); } ); }) </script> </head> <body id="bd"> <input id="bt1" type="button" value="ssss"/> </body> </html>

未捕获的TypeError:b.toLowerCase不是函数

<div class="post-text" itemprop="text"> <p>I am fetching some records :</p> <pre><code>$companies = \App\User::where('type', 'pet-salon')-&gt;orWhere('type', 'veterinarian')-&gt;get(); return response()-&gt;json($companies); </code></pre> <p>The data coming back is an array of objects:</p> <pre><code>[{ id: 2, type: "xxx", deactivate: 0, xxx: "Hello", middle_name: "Mid", lastname: "xxx", //... }] </code></pre> <p>This is the jQuery typeahead code:</p> <pre><code>$('#getCompaniesForConnection').typeahead({ source: function (query, process) { return $.get('/all/companies', { query: query }, function (data) { return process(data); }); } }); </code></pre> <p>The exception its giving me :</p> <blockquote> <p>Uncaught TypeError: b.toLowerCase is not a function</p> </blockquote> <p>And the results drop-down is not showing too, What am i missing here ?</p> </div>

未捕获的TypeError:data [option]不是函数bootstrap.js:1215

<div class="post-text" itemprop="text"> <p>I'm getting the following error using the bootstrap lightbox from <a href="http://ashleydw.github.io/lightbox/" rel="nofollow">here</a>:</p> <p><code>Uncaught TypeError: data[option] is not a function bootstrap.js:1215</code></p> <p>I've copied all files directory and haven't altered any parameters.</p> <p>This is my code:</p> <p>JS Linking:</p> <pre><code> &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"&gt;&lt;/script&gt; &lt;script src="/js/bootstrap.js"&gt;&lt;/script&gt; &lt;script src="/js/bootstrap-lightbox.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="/css/bootstrap.css"&gt; &lt;link rel="stylesheet" href="/css/bootstrap-theme.css"&gt; &lt;link rel="stylesheet" href="/css/bootstrap-social.css"&gt; &lt;link rel="stylesheet" href="/css/bootstrap-lightbox.css"&gt; &lt;link rel="stylesheet" href="/css/font-awesome.css"&gt; &lt;link rel="stylesheet" href="/css/bootstrap-override.css"&gt; &lt;link rel="stylesheet" href="http://fonts.example.com/custom-font.css"&gt; </code></pre> <p>Gallery:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-12"&gt; &lt;h1 class="page-header"&gt;Portfolio&lt;/h1&gt; &lt;/div&gt;&lt;?php $images = glob($_SERVER['DOCUMENT_ROOT'].'/img/gallery/*.{jpg,png,gif}', GLOB_BRACE); $imageCount = count($images); if($imageCount == 0) { echo "There are currently no images in this gallery."; } else if($imageCount !== 0) { $counter = 1; foreach($images as $image) { echo "&lt;div class='col-lg-3 col-md-4 col-xs-6 thumb'&gt; "; echo "&lt;a data-toggle='lightbox' data-title='A random title' data-footer='A custom footer text' href='http://img.example.com/gallery/".basename($image)."' class='thumbnail'&gt;&lt;img src='http://img.example.com/gallery/thumb.php?src=" . basename($image) . "&amp;w=400&amp;h=300&amp;a=c' alt='Jolly Roger PCS Gallery Image' title='One Call Does It All' class='img-responsive'&gt;&lt;/a&gt; "; echo "&lt;/div&gt; "; } } ?&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>And the output of the gallery script for an image:</p> <pre><code>&lt;div class='col-lg-3 col-md-4 col-xs-6 thumb'&gt; &lt;a data-toggle='lightbox' data-title='A random title' data-footer='A custom footer text' href='http://img.example.com/gallery/10177464_1495074060751956_373648277891171115_n.jpg' class='thumbnail'&gt;&lt;img src='http://img.example.com/gallery/thumb.php?src=10177464_1495074060751956_373648277891171115_n.jpg&amp;w=400&amp;h=300&amp;a=c' alt='Jolly Roger PCS Gallery Image' title='One Call Does It All' class='img-responsive'&gt;&lt;/a&gt; &lt;/div&gt; </code></pre> <p>And finally the JS at the end of page:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).on('click', '[data-toggle="lightbox"]', function(event) { event.preventDefault(); $(this).ekkoLightbox(); }); &lt;/script&gt; </code></pre> <p>The script is working to an extent. When I click a thumbnail image the lightbox fires and the loading image appears, but the full size image of the icon never does.</p> <p>The data-types all appear to be in the right spot so I don't know what is causing this error. I tried a search and didn't come up with any results.</p> </div>

文件上传$.ajaxFileUpload is not a function

使用ajaxFileUpload进行文件上传,在chrome浏览器脚本控制台报错:$.ajaxFileUpload is not a function,点击上传按钮没有响应。 代码如下: ``` <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/ajaxfileupload.js"></script> <script type="text/javascript"> function uploadFileByAjax() { //验证文件是否选择文件 var fileObj = $("#uploadFile"); var fileName = fileObj.attr("value"); if(fileName == null || fileName == ""){ return; } alert(fileName); $.ajaxFileUpload({ url : "/Itil/attamgn/upload", //需要链接到服务器地址 secureuri : false, fileElementId : "uploadFile", //文件选择框的id属性 dataType : "json", //服务器返回的格式,可以是json, xml success : function(data, status) //相当于java中try语句块的用法 { //alert("记录ID:" + data.seqId); //alert("文件名:" + data.uplName); attList.push(data.seqId); //修改显示文件列表 var content = "<li id=\"file" + fileIndex + "\" class=\"one-line border-radius-all attach\"><span class=\"name one-line\"><a class=\"ico ico-attach text\">"; content = content + data.uplName + "</a></span>"; content = content + "<span class=\"tool\"><a class=\"ico ico-remove hover\" title=\"删除\" onclick=\"deleteUploadFile('file"+fileIndex + "', '"+ data.seqId +"')\"></a></span></li>"; content = content + $("#fileList").html(); $("#fileList").html(content); }, error : function(data, status, e) //相当于java中catch语句块的用法 { alert("上传失败"); } } ); } </script> <body> <a><span id="" class="ico ico16 ico-attach hover ml10" title="添加附件" onclick="uploadFileByAjax(); return false; "></span></a> </body> ``` 哪位大神指点一下啊! 从访问时的页面源码可以进入引入的jquery.min.js和ajaxfileupload.js文件,可以确认引入没问题。

js mobile的popup的报错Uncaught TypeError:

**学习javascript mobile popup的时候 显示: Uncaught TypeError: e.preventDefault is not a function** ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="jquery-2.2.3.js"></script> <script src="jquery.mobile-1.4.5.min.js"></script> <link rel="stylesheet" type="text/css" href="jquery.mobile-1.4.5.min.css"> </head> <body> <div class="ui-field-contain"> <select name="select-native-1" id="select-native-1" data-iconpos="left"> <option value="1">这是第一个</option> <option value="2">这是第2个</option> <option value="3" disabled="disabled">这是第3个</option> <option value="4">这是第4个</option> </select> </div> </body> </html> ``` ![图片说明](https://img-ask.csdn.net/upload/201605/23/1463979770_768886.png)

检查null是否为JS typeerror

<div class="post-text" itemprop="text"> <p>I am trying to check if fields are blank or not, but it always throws this error:</p> <pre><code>TypeError: document.getElementById(...) is null </code></pre> <p>Here is the code: <a href="http://pastebin.com/v8mDwG2i" rel="nofollow">http://pastebin.com/v8mDwG2i</a></p> <p>I am using jQuery UI and jQuery. Mine problem is that it always throws null and breaks on that line.</p> </div>

Wordpress编辑器JS错误“TypeError:无法读取属性'获取'未定义”

<div class="post-text" itemprop="text"> <p><strong>The Issue:</strong> When editing pages or posts, tinymce doesn't load because of this error.</p> <pre><code>editor.min.js?ver=4.7.3:1 Uncaught TypeError: Cannot read property 'get' of undefined at Object.d [as go] (editor.min.js?ver=4.7.3:1) at HTMLAnchorElement.&lt;anonymous&gt; (editor.js?ver=4.7.3:43) at HTMLAnchorElement.dispatch (jquery.js?ver=1.12.4:3) at HTMLAnchorElement.r.handle (jquery.js?ver=1.12.4:3) at Object.trigger (jquery.js?ver=1.12.4:3) at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2) at HTMLAnchorElement.&lt;anonymous&gt; (jquery.js?ver=1.12.4:3) at Function.each (jquery.js?ver=1.12.4:2) at a.fn.init.each (jquery.js?ver=1.12.4:2) at a.fn.init.trigger (jquery.js?ver=1.12.4:3) </code></pre> <p><strong>Install Notes:</strong></p> <ol> <li>Wordpress 4.7.3 </li> <li><a href="https://themeforest.net/item/church-and-events-theme-for-churches-and-events/7028545" rel="nofollow noreferrer">Church &amp; Events</a> Theme (Latest Version, fresh installed)</li> <li>All Plugins up to date</li> </ol> <p><strong>Plugins Installed (All Deactivated)</strong></p> <pre><code>+-------------------------------+----------+--------+---------+ | name | status | update | version | +-------------------------------+----------+--------+---------+ | akismet | inactive | none | 3.3 | | check-email | inactive | none | 0.5.2 | | contact-form-7 | inactive | none | 4.7 | | duplicate-post | inactive | none | 3.2 | | duplicator | inactive | none | 1.2.4 | | easy-wp-smtp | inactive | none | 1.2.5 | | gravityforms | inactive | none | 1.9.19 | | groupsengine_plugin | inactive | none | 1.0.9 | | hello | inactive | none | 1.6 | | iwp-client | inactive | none | 1.6.3.2 | | layerslider | inactive | none | 6.3.0 | | limit-login-attempts | inactive | none | 1.7.1 | | login-security-solution | inactive | none | 0.56.0 | | vamtam-love-it | inactive | none | 1.0.0 | | wysija-newsletters | inactive | none | 2.7.9 | | wp_migration-master | inactive | none | 1.2 | | prayerengine_plugin | inactive | none | 1.7.5 | | seamless-donations | inactive | none | 4.0.20 | | seriesengine_plugin | inactive | none | 1.8.4 | | the-events-calendar | inactive | none | 4.4.5 | | the-events-calendar-filterbar | inactive | none | 4.4 | | events-calendar-pro | inactive | none | 4.4.5 | | vamtam-push-menu | inactive | none | 2.0.11 | | vamtam-sermons | inactive | none | 1.1.0 | | varnish-http-purge | inactive | none | 4.1 | | woocommerce | inactive | none | 3.0.3 | | wordpress-importer | inactive | none | 0.6.3 | | wp-database-backup | inactive | none | 4.3.7 | | wp-retina-2x | inactive | none | 4.8.0 | +-------------------------------+----------+--------+---------+ </code></pre> <p><strong>Debugging:</strong></p> <ol> <li>Disabled all plugins</li> <li>Fresh install of Theme</li> <li>Fresh install of wordpress</li> <li>Switched to default theme (no more error)</li> <li>Contacted theme author (said they could not reproduce)</li> </ol> <p><strong>Additional Notes:</strong> The only thing I can think of is its something in the db itself that's causing the issue? Are there any other debugging steps I can try? </p> <p>I'm using this same theme on other site and it doesn't have the error. So its something specific to the site in question. But a fresh wordpress install, fresh theme, and no plugins puts me at a loss as to how to track it down. Thanks in advance for any tips/help!</p> <p><strong>Updated 4/19/17</strong> On a whim I started with a fresh wordpress install, with only the church and event theme installed. No errors. So one by one I copied the tables from the production site to the new wordpress install using this query</p> <pre><code>DROP TABLE IF EXISTS dev_db.wp_users; CREATE TABLE dev_db.wp_users LIKE production_db.wp_users; INSERT INTO dev_db.wp_users SELECT * FROM production_db.wp_users; </code></pre> <p>After copying each table, I refreshed the page editor to see if the error happened. As soon as I copied the wp_users and wp_usermeta tables the error happened. So something in one of those tables is causing a js error on the front end? Hmmm..</p> </div>

Magento:无法运行数据流配置文件:Ajax错误(未捕获TypeError:e不是函数)

<div class="post-text" itemprop="text"> <p>Whenever I want to run a dataflow profile in Magento, the following happend:</p> <ol> <li>the csv file is successfully loaded</li> <li>Found X rows</li> <li>The following line appears: Starting ... :: saveRow (handler-method)</li> </ol> <p>But then an javascript-error occurs. For instance in Chrome Debugger you can see the details (starting from line 148):</p> <pre><code>function sendImportData(data) { ... new Ajax.Request("http://www.magentoshop.com/index.php/admin/system_convert_profile/batchRun/", { ... } ... } </code></pre> <p>The error message is:</p> <pre><code>Uncaught TypeError: e is not a function </code></pre> <p>The used magento-version is 1.8.0.0</p> </div>

$(...).live is not a function明明导入了jquery-1.7.2.min.js还报这个错

$(...).live is not a function明明导入了jquery-1.7.2.min.js还报这个错 <script type="text/javascript" th:src="@{/static/******/lib/jquery/jquery-1.7.2.min.js}"></script> <script type="text/javascript" th:src="@{/******/lib/jquery.reveal.js}"></script> live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},这个是jquery-1.7.2.min.js里面的 $('a[data-reveal-id]').live('click', function(e) { e.preventDefault(); var modalLocation = $(this).attr('data-reveal-id'); $('#'+modalLocation).reveal($(this).data()); });这个是jquery.reveal.js里面的 就是报jquery.reveal.js里面的live不是个方法,jquery-1.7.2.min.js的导入代码在前,请大佬指教这是为什么

未捕获的TypeError:无法读取未定义的属性“数据”

<div class="post-text" itemprop="text"> <p>I need some help with this code, I have found some similar issues:</p> <p><a href="https://stackoverflow.com/questions/6550795/uncaught-typeerror-cannot-read-property-value-of-undefined">Uncaught TypeError: Cannot read property 'value' of undefined</a></p> <p><a href="https://stackoverflow.com/questions/15312479/uncaught-typeerror-cannot-read-property-name-of-undefined">Uncaught TypeError: Cannot read property 'name' of undefined</a></p> <p><a href="https://stackoverflow.com/questions/7868981/ajax-call-in-jquery-uncaught-typeerror-cannot-read-property-error-of-null">Ajax call in jQuery - uncaught typeerror cannot read property 'error' of null</a></p> <p>but still not working, I'm using jquery (.ajax) to send and recieve data to the server (php), when I use localhost at url in .ajax function, it works fine and receives the data that I need, but when I change the url for the ip of the server it shows: "Uncaught TypeError: Cannot read property <em>"some value"</em> of undefined"</p> <p>Jquery code: </p> <pre><code>$(document).on("ready",inicio); function inicio(){ /*Change pages events*/ var buttonscan; buttonscan = $('#button_scan'); buttonscan.on("click",solicitardatos); } function solicitardatos(){ var idscan = "001"; $.ajax({ type: 'post', //with localhost works fine, this is the ip of my cpu when testing from //other device 192.168.0.101 url: "http://192.168.0.101/server/info.php?jsoncallback=?", data: {datos:idscan}, cache: false, success: function(data) { $('#button_scan').hide(); $('#page1').hide(); $('#page2').show(); $('#pl').html(data[0].pl); $('#name').html(data[0].name); }, error: function(jqXHR, textStatus, errorThrown) { console.log("Error... " + textStatus + " " + errorThrown); alert("Error... " + textStatus + " " + errorThrown); }, dataType: 'json' }); </code></pre> <p>}</p> <p>And this is the PHP server file (info.php)</p> <pre><code>&lt;?php header('Content-Type: text/javascript; charset=UTF-8'); error_reporting(E_ALL ^ E_NOTICE); require("conexion.php"); $id = $_POST['datos']; /*Here is all the sql statements, and the mysqli query*/ while ($fila = mysqli_fetch_array($peticion)) { $resultado[] = array("pl"=&gt;$fila['pl'],"name"=&gt;$fila['name']); } mysqli_close($conexion); //echo json_encode($resultado); echo $_GET['jsoncallback'] . '(' . json_encode($resultado) . ');'; ?&gt; </code></pre> <p>So when I use the url setting (localhost) it works, when I change to the server ip (192.168.0.101) it stops working and shows: "Uncaught TypeError: Cannot read property 'pl' of undefined"</p> <p>, I know that the ip it is working because when I copy 192.168.0.101/server/info.php at my browser it doesn't shows any error</p> <p>Thanks,</p> <p>Now I have used an external server, which is in cloud, and it works if I use a constant $id = "001" at info.php, but when I removed that constant and put $id = $_POST['datos'] ,is empty again, so I think there is something wrong when sending the data</p> </div>

Jquery TypeError:data.errors未定义

<div class="post-text" itemprop="text"> <p>I'm currently developing a website for a gaming community but I've stumbled on some issues I can't fix. This is suppose to edit a user inserted in the database.</p> <p><strong>edituser.php</strong></p> <pre><code>&lt;form id="edituser" enctype="multipart/form-data"&gt; &lt;div class="col-sm-3"&gt; &lt;div class="form-group"&gt; &lt;img src="../../assets/images/users/&lt;?=$row['users_image']; ?&gt;.&lt;?=$row['users_imagetype']; ?&gt;" class="img-responsive img-circle"&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;input type="file" id="image"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="col-sm-9"&gt; &lt;div id="usersidControl" class="form-group"&gt; &lt;label&gt;User ID:&lt;/label&gt; &lt;input id="usersid" class="form-control" value="&lt;?=$row['usersid']; ?&gt;" placeholder="&lt;?=$row['usersid']; ?&gt;" disabled&gt; &lt;/div&gt; &lt;div id="nameControl" class="form-group"&gt; &lt;label&gt;Name:&lt;/label&gt; &lt;input id="name" class="form-control" value="&lt;?=$row['name']; ?&gt;" placeholder="&lt;?=$row['name']; ?&gt;"&gt; &lt;/div&gt; &lt;div id="usernameControl" class="form-group"&gt; &lt;label&gt;Username:&lt;/label&gt; &lt;input id="username" class="form-control" value="&lt;?=$row['username']; ?&gt;" placeholder="&lt;?=$row['username']; ?&gt;" disabled&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p><strong>edituser.js</strong></p> <pre><code>$(document).ready(function() { $('form#edituser').submit(function(e) { var edituser = { 'usersid' :$('input#usersid').val(), 'name' :$('input#name').val(), 'image' :$('input#image').attr('files'), } $.ajax({ type : 'POST', url : 'processedituser.php', data : edituser, contentType : 'multipart/form-data', enconde : true }) .done(function(data) { $('.form-group').removeClass('has-error'); $('.help-block').remove(); if (!data.success) { if (data.errors.name) { // empty name $('#nameControl').addClass('has-error'); $('#nameControl').append('&lt;div class="help-block"&gt;' + data.errors.name + '&lt;/div&gt;'); } if (data.errors.username) { // empty username $('#usernameControl').addClass('has-error'); $('#usernameControl').append('&lt;div class="help-block"&gt;' + data.errors.username + '&lt;/div&gt;'); } } else if (data.success) { if ($('#result').hasClass('alert-danger') || $('#result').hasClass('alert-warning') || $('#result').hasClass('alert-success') || $('#result').hasClass('alert-info') ||$('#result').hasClass('hidden')) { $('#result').removeClass('alert-danger alert-info alert-success alert-warning hidden'); $('#result').addClass('alert-success fade in'); $('#result').html(data.message); } } }) .fail(function(data) { if ($('#result').hasClass('alert-danger') || $('#result').hasClass('alert-warning') || $('#result').hasClass('alert-success') || $('#result').hasClass('alert-info') ||$('#result').hasClass('hidden')) { $('#result').removeClass('alert-danger alert-info alert-success alert-warning hidden'); $('#result').addClass('alert-danger fade in'); $('#result').html('An error has ocurred trying to edit this user, please try again in a few moments. If the problem persists, please contact the webmaster.'); } }); e.preventDefault(); }); }); </code></pre> <p><strong>processedituser.php</strong></p> <pre><code>include ("config.php"); global $conn; $errors = array(); $data = array(); $editorid = $_COOKIE['backoffice_usersid']; $editor = $_COOKIE['backoffice_username']; $usersid = $_POST['usersid']; $name = $_POST['name']; $file = $_POST['image']; if (empty($name)) { $errors['name'] = "Please fill in the name."; } $file = rand(1000,100000)."-".$_FILES['file']['name']; $file_loc = $_FILES['file']['tmp_name']; $file_size = $_FILES['file']['size']; $file_type = $_FILES['file']['type']; $folder="../../assets/images/users/"; $new_size = $file_size/1024; $new_file_name = strtolower($file); $final_file = str_replace(' ','-',$new_file_name); if (empty($image)) { $errors['file'] = "Please choose an image to upload"; } else if (!move_uploaded_file($file_loc,$folder.$final_file)) { $errors['file'] = "Couldn't upload the file, please try again later"; } if (!empty($errors)) { $data['success'] = false; $data['errors'] = $errors; } else { try { // Update Users table $sql_update = "UPDATE users SET .... "; // Insert log $sql_insert = "INSERT INTO logs (action, content, type, date, usersid) VALUES ('Edited', 'user $username by $editor', 'pencil-square-o', NOW(), '$editorid')"; $conn-&gt;exec($sql_insert); $data['success'] = true; $data['message'] = "You have successfully edited this user. You'll be redirected in 5 seconds."; } catch(PDOException $e) { $data['success'] = false; $data['message'] = "Couldn't register you on our database!"; } } echo json_encode($data); </code></pre> <p>Ok, so this is my code, I've been working on this for like 2 months, I have a similar code, but it works with no problem whatsoever. The real problem is that when I have no errors to trigger the !data.success, it simply gives me TypeError: data.errors is undefined, which I've checked over and over again, not knowing what can possibly be wrong.</p> <p>The other problem is the file upload seems no to be working properly, it doesn't upload anything to the Db even though the code works outside the back office just like the rest of the code.</p> <p>Can anyone please help me?</p> </div>

TypeError:无法读取undefined vue-resource.js的属性'replace':284

<div class="post-text" itemprop="text"> <p>Can anyone please help me with this error?</p> <p>I have been using jQuery along with vue.js. Below is the method I am having issue with... It is called by a post request. <code>new_user</code> contains values received from the html form fields...</p> <p>Values are being received nicely when I write it in console. </p> <p>Problem comes when I try to use ajax method to store the data (this.$http.post()). I get the following error:</p> <blockquote> <p>TypeError: Cannot read property 'replace' of undefined vue-resource.js:284</p> </blockquote> <p>There were couple of links I went through.but i could take help from none... I might have made some silly mistakes because I used the above code from a perfectly running script. So if anyone can spot the mistake i would be grateful. Thanks... :)</p> <p>Happy coding.</p> <pre><code> addUser : function(new_user){ // var instance = this; console.log(this) var new_user_input = this.new_user console.log(new_user_input.name)//this works fine.. //problem comes right here this.$http.post("clients/" , new_user_input).then((response) =&gt; { alert("ok") },(response) =&gt; { alert("failed") this.form_errors = response.data // console.log("here should be the form errrors " + response.data.title) }); } </code></pre> </div>

使用ajaxSubmit 一部提交表单报ajaxSubmit is not function

框架是struts2 在使用ajaxSubmit异步提交表单报错$(...).ajaxSubmit is not a function 我引进了jquery-form.js 并且加载了 代码如下 ``` <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src = "<%=request.getContextPath()%>/js/jquery.min.js"></script> <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-form.js"></script> <title>Insert title here</title> <script type="text/javascript"> function upload(){ var options = { url : "<%=request.getContextPath()%>/upload/uploadPic", type : "post", dataType : "json", success : function(data){ alert(data); } } $("#aaa").ajaxSubmit(options); } </script> </head> <body> <form action="<%=request.getContextPath()%>/upload/uploadPic" method="post" id="aaa" enctype="multipart/form-data"> <input id="infile" name="picture" type="file" onchange="upload()"> </form> </body> </html> ``` ![图片说明](https://img-ask.csdn.net/upload/201705/20/1495280200_451576.png) 上传图片就报错 ![图片说明](https://img-ask.csdn.net/upload/201705/20/1495280337_827135.png 请问这个问题怎么解决啊 ,或者有没有别的异步上传图片,我需要有返回值的。请帮帮忙。

引入jquery插件问题 报错

html代码 ``` <!DOCTYPE html> <html> <head> <script src="jquery.pagination.js"></script> <script src="jquery-1.11.1.min.js"></script> <script > alert(1); $('.M-box').pagination({ callback:function(index){ $('.now').text(index); } },function(api){ $('.now').text(api.getCurrent()); }); </script> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <div class="M-box"></div> </body> </html> ``` jquery.pagination.js和jquery-1.11.1.min.js文件都放项目下了 报错Uncaught ReferenceError: jQuery is not defined 43.html:8 Uncaught TypeError: $(...).pagination is not a function word_search.js:155 Uncaught TypeError: Cannot read property 'id' of null 发现jquery,js应该在第一行。。改了之后 Uncaught TypeError: Cannot read property 'id' of null 这个错啥意思。。

Magento 2安装Windows Admin Broken Links

<div class="post-text" itemprop="text"> <p>I use XAMPP on Windows 10. I installed Magento 2.20 community. My admin URLs are all broken:</p> <p><a href="https://i.stack.imgur.com/bnmi0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bnmi0.jpg" alt="enter image description here"></a></p> <p>Is there another version I should use? I tried to run the commands from this post:</p> <p><a href="https://stackoverflow.com/questions/41168461/magento-2-links-in-admin-wont-work">Magento 2 - Links in Admin wont work</a></p> <p><a href="https://i.stack.imgur.com/WK2f8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WK2f8.jpg" alt="enter image description here"></a></p> <p>In my console, I see these errors:</p> <pre><code>/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css:1 Failed to load resource: net::ERR_CONNECTION_RESET /Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css:1 Failed to load resource: net::ERR_CONNECTION_RESET require.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) requirejs-config.js:71 Uncaught TypeError: require is not a function at requirejs-config.js:71 at requirejs-config.js:78 at requirejs-config.js:416 magento-icon.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):38 Uncaught TypeError: require.config is not a function at (index):38 (index):87 Uncaught TypeError: require is not a function at (index):87 (index):295 Uncaught TypeError: require is not a function at (index):295 (index):428 Uncaught TypeError: require is not a function at (index):428 (index):473 Uncaught TypeError: require is not a function at (index):473 (index):514 Uncaught TypeError: require is not a function at (index):514 (index):537 Uncaught TypeError: require is not a function at (index):537 (index):560 Uncaught TypeError: require is not a function at (index):560 admin-icons.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-600.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-700.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found) admin-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-700.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found) admin-icons.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-600.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-700.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-600.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found) opensans-400.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found) </code></pre> </div>

hasChildNodes不是一个功能很小的鼠标编辑器js错误

<div class="post-text" itemprop="text"> <p>I am using the tiny mice editor in my application but it's giving js error some times like </p> <pre><code>Uncaught TypeError: D.hasChildNodes is not a function </code></pre> <p>And I have checked the below links <a href="http://www.tinymce.com/develop/bugtracker_view.php?id=5263" rel="nofollow noreferrer">Link1</a> <a href="https://stackoverflow.com/questions/14681051/uncaught-typeerror-cannot-call-method-haschildnodes-of-undefined">Link2</a> but it didn't work for me.</p> <p>This error is coming in Firefox, Chrome and IE and the error js file it's showing editor_template.js. Please help me to solve this js error.</p> </div>

Javascript - 未捕获的TypeError:无法读取未定义的属性“值”

<div class="post-text" itemprop="text"> <p>I am currently converting my friends website, as it's not "mobile friendly" by changing his current frontend into a bootstrap front end.</p> <p>I've been working on a test site which is just a sub-domain on the same server.</p> <p>This is the old website: <a href="http://bit.ly/1hurTNB" rel="nofollow">http://bit.ly/1hurTNB</a> </p> <p>This is the new website: <a href="http://bit.ly/1hus0IV" rel="nofollow">http://bit.ly/1hus0IV</a> </p> <p>But I've encountered a problem with the shopping cart page.</p> <p>The shopping cart no longer recalculates its total when I press the recalculate button. It works fine on the old website. I dont know what I've changed to break it?</p> <p>I've debugged the JavaScript using Chrome Dev Tools (F12) and line no 150 of order.php has this error:</p> <pre><code>Uncaught TypeError: Cannot read property 'value' of undefined </code></pre> <p>And this is the line of offending code:</p> <pre><code>if (document.forms[1].elements["qty" + count].value == "" || document.forms[1].elements["qty" + count].value == 0) { document.forms[1].elements["qty" + count].value = 0; showInCart = false; } </code></pre> <p>I don't understand why I am getting this error? Googling around gives vague answers. Which is why I am here on StackOverflow.</p> <p>BTW if you want to recreate my problem you'll need to:</p> <ol> <li><p>go to the homepage</p></li> <li><p>choose a product category from the grid of pictures e.g. "get costume ideas..."</p></li> <li><p>add an item to the basket.</p></li> <li><p>once the page posts to Order.php Change its Quantity.</p></li> <li><p>click the recalculate button.</p></li> </ol> <p>Why is the Javascript no longer picking up the values from the quantity fields???</p> <p>Any help is greatly appreciated.</p> <p>Here is the function in its entirety:</p> <pre><code>&lt;script type="text/javascript"&gt; function recalculateTotal(){ var lineTotal = 0; var subTotal = 0; var total = 0; var hiddenStuff = ""; var count; var i; var orderURL="register.php?orderDetails="; items = new Array(&lt;?=$itemList?&gt;); for (i in items){ var cNum = 0; var pNum = 0; var qNum = 0; count = items[i]; cNum = (count * 4) + 1; var showInCart = true; // the next line is broken! if (document.forms[1].elements["qty" + count].value == "" || document.forms[1].elements["qty" + count].value == 0){ document.forms[1].elements["qty" + count].value = 0; showInCart = false; } lineTotal = document.forms[1].elements["qty" + count].value * document.forms[1].elements["price" + count].value; document.getElementById("lTotal" + count).innerHTML = formatCurrency(lineTotal); subTotal += lineTotal; if (hiddenStuff == ""){ hiddenStuff = hiddenStuff + showInCart + ":" + document.forms[1].elements["productId" + count].value + ':' + document.forms[1].elements["qty" + count].value; }else{ hiddenStuff = hiddenStuff + ":" + showInCart + ":" + document.forms[1].elements["productId" + count].value + ':' + document.forms[1].elements["qty" + count].value; } } document.getElementById("subTotal").innerHTML = formatCurrency(subTotal); for (var j in delivery_prices){ if (subTotal &gt;= delivery_prices[j].total_amount_start &amp;&amp; subTotal &lt;= delivery_prices[j].total_amount_end){ document.getElementById('delivery').innerHTML = delivery_prices[j].delivery_price; total = subTotal + delivery_prices[j].delivery_price; } } document.getElementById("total").innerHTML = formatCurrency(total); document.forms[1].elements["orderDetails"].value = hiddenStuff; orderURL = orderURL + hiddenStuff; var myrequest = $.ajax({ url: orderURL, type: "get", }); myrequest.done(function (response){ updateBasket(); }); } &lt;/script&gt; </code></pre> <p>Thanks very much.</p> </div>

TypeError:a为null [关闭]

<div class="post-text" itemprop="text"> <aside class="s-notice s-notice__info js-post-notice mb16" aria-hidden="false" role="status"> <div class="grid fd-column fw-nowrap"> <div class="grid fw-nowrap"> <div class="grid--cell mr8"> <svg aria-hidden="true" class="svg-icon iconLightbulb" width="18" height="18" viewbox="0 0 18 18"><path d="M9.5.5a.5.5 0 0 0-1 0v.25a.5.5 0 0 0 1 0V.5zm5.6 2.1a.5.5 0 0 0-.7-.7l-.25.25a.5.5 0 0 0 .7.7l.25-.25zM1 7.5c0-.28.22-.5.5-.5H2a.5.5 0 0 1 0 1h-.5a.5.5 0 0 1-.5-.5zm14.5 0c0-.28.22-.5.5-.5h.5a.5.5 0 0 1 0 1H16a.5.5 0 0 1-.5-.5zM2.9 1.9c.2-.2.5-.2.7 0l.25.25a.5.5 0 1 1-.7.7L2.9 2.6a.5.5 0 0 1 0-.7z" fill-opacity=".4"></path><path opacity=".4" d="M7 16h4v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-1z" fill="#3F3F3F"></path><path d="M15 8a6 6 0 0 1-3.5 5.46V14a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-.54A6 6 0 1 1 15 8zm-4.15-3.85a.5.5 0 0 0-.7.7l2 2a.5.5 0 0 0 .7-.7l-2-2z" fill="#FFC166"></path></svg> </div> <div class="grid--cell fl1 lh-lg"> <div class="grid--cell fl1 lh-lg"> It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, <a href="/help/reopen-questions">visit the help center</a>. </div> </div> </div> <div class="grid--cell mb0 mt8">Closed <span title="2013-04-26 22:13:42Z" class="relativetime">7 years ago</span>.</div> </div> </aside> <p>I'm using the following jQuery Ajax call... anyhow it's not working.</p> <p>Error:<code>TypeError: a is null</code></p> <p>Here is my Code:</p> <pre><code>var prefixUrl = "autocomplete?action=complete&amp;id="; $('#complete-field').bind('keyup', function(){ var url = prefixUrl + escape($('#complete-field').val()); $.ajax({ type: "GET", getUrl:url, dataType: "xml", success: function(responseXML) { var composers = responseXML.getElementsByTagName("composers")[0]; if (composers.childNodes.length &gt; 0) { $('#complete-table').css("border", "1px solid green"); $('#complete-table').css("margin", "128px 0 0 -82px"); for (var loop = 0; loop &lt; composers.childNodes.length; loop++) { var composer = composers.childNodes[loop]; var firstName = composer.getElementsByTagName("firstName")[0]; var lastName = composer.getElementsByTagName("lastName")[0]; var composerId = composer.getElementsByTagName("id")[0]; appendComposer(firstName.childNodes[0].nodeValue, lastName.childNodes[0].nodeValue, composerId.childNodes[0].nodeValue); } } }, error:function (xhr, ajaxOptions, thrownError) { alert('xhr.status: ' + xhr.status); alert(thrownError); } }); }); </code></pre> <p>Any Idea please?</p> <p>Many Thanks</p> </div>

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

人工智能-计算机视觉实战之路(必备算法+深度学习+项目实战)

系列课程主要分为3大阶段:(1)首先掌握计算机视觉必备算法原理,结合Opencv进行学习与练手,通过实际视项目进行案例应用展示。(2)进军当下最火的深度学习进行视觉任务实战,掌握深度学习中必备算法原理与网络模型架构。(3)结合经典深度学习框架与实战项目进行实战,基于真实数据集展开业务分析与建模实战。整体风格通俗易懂,项目驱动学习与就业面试。 建议同学们按照下列顺序来进行学习:1.Python入门视频课程 2.Opencv计算机视觉实战(Python版) 3.深度学习框架-PyTorch实战/人工智能框架实战精讲:Keras项目 4.Python-深度学习-物体检测实战 5.后续实战课程按照自己喜好选择就可以

linux2.6.1内核源码注释

包含LINUX内核同步、信号、内存、调度、文件系统、网络系统、时钟等部分的源码注释。前后历时三年,算是干货。

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

u-boot-2015.07.tar.bz2

uboot-2015-07最新代码,喜欢的朋友请拿去

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

MySQL 8.0.19安装教程(windows 64位)

话不多说直接开干 目录 1-先去官网下载点击的MySQL的下载​ 2-配置初始化的my.ini文件的文件 3-初始化MySQL 4-安装MySQL服务 + 启动MySQL 服务 5-连接MySQL + 修改密码 先去官网下载点击的MySQL的下载 下载完成后解压 解压完是这个样子 配置初始化的my.ini文件的文件 ...

零基础学C#编程—C#从小白到大咖

本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

编程实现学生基本信息管理程序

编程实现学生基本信息管理程序。学生基本信息包括:学号、姓名、性别、年龄、班级、学院、专业等。具体实现的管理功能如下: (1) 输入并显示多个学生的基本信息; (2) 可根据需要实现学生信息的添加; (

机器学习实战系列套餐(必备基础+经典算法+案例实战)

机器学习实战系列套餐以实战为出发点,帮助同学们快速掌握机器学习领域必备经典算法原理并结合Python工具包进行实战应用。建议学习顺序:1.Python必备工具包:掌握实战工具 2.机器学习算法与实战应用:数学原理与应用方法都是必备技能 3.数据挖掘实战:通过真实数据集进行项目实战。按照下列课程顺序学习即可! 课程风格通俗易懂,用最接地气的方式带领大家轻松进军机器学习!提供所有课程代码,PPT与实战数据,有任何问题欢迎随时与我讨论。

YOLOv3目标检测实战:训练自己的数据集

YOLOv3是一种基于深度学习的端到端实时目标检测方法,以速度快见长。本课程将手把手地教大家使用labelImg标注和使用YOLOv3训练自己的数据集。课程分为三个小项目:足球目标检测(单目标检测)、梅西目标检测(单目标检测)、足球和梅西同时目标检测(两目标检测)。 本课程的YOLOv3使用Darknet,在Ubuntu系统上做项目演示。包括:安装Darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 Darknet是使用C语言实现的轻型开源深度学习框架,依赖少,可移植性好,值得深入探究。 除本课程《YOLOv3目标检测实战:训练自己的数据集》外,本人推出了有关YOLOv3目标检测的系列课程,请持续关注该系列的其它课程视频,包括: 《YOLOv3目标检测实战:交通标志识别》 《YOLOv3目标检测:原理与源码解析》 《YOLOv3目标检测:网络模型改进方法》 敬请关注并选择学习!

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

土豆浏览器

土豆浏览器可以用来看各种搞笑、电影、电视剧视频

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

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

玩转Linux:常用命令实例指南

人工智能、物联网、大数据时代,Linux正有着一统天下的趋势,几乎每个程序员岗位,都要求掌握Linux。本课程零基础也能轻松入门。 本课程以简洁易懂的语言手把手教你系统掌握日常所需的Linux知识,每个知识点都会配合案例实战让你融汇贯通。课程通俗易懂,简洁流畅,适合0基础以及对Linux掌握不熟练的人学习; 【限时福利】 1)购课后按提示添加小助手,进答疑群,还可获得价值300元的编程大礼包! 2)本月购买此套餐加入老师答疑交流群,可参加老师的免费分享活动,学习最新技术项目经验。 --------------------------------------------------------------- 29元=掌握Linux必修知识+社群答疑+讲师社群分享会+700元编程礼包。 &nbsp;

基于STM32的电子时钟设计

时钟功能 还有闹钟功能,温湿度功能,整点报时功能 你值得拥有

Python数据清洗实战入门

本次课程主要以真实的电商数据为基础,通过Python详细的介绍了数据分析中的数据清洗阶段各种技巧和方法。

Git 实用技巧

这几年越来越多的开发团队使用了Git,掌握Git的使用已经越来越重要,已经是一个开发者必备的一项技能;但很多人在刚开始学习Git的时候会遇到很多疑问,比如之前使用过SVN的开发者想不通Git提交代码为什么需要先commit然后再去push,而不是一条命令一次性搞定; 更多的开发者对Git已经入门,不过在遇到一些代码冲突、需要恢复Git代码时候就不知所措,这个时候哪些对 Git掌握得比较好的少数人,就像团队中的神一样,在队友遇到 Git 相关的问题的时候用各种流利的操作来帮助队友于水火。 我去年刚加入新团队,发现一些同事对Git的常规操作没太大问题,但对Git的理解还是比较生疏,比如说分支和分支之间的关联关系、合并代码时候的冲突解决、提交代码前未拉取新代码导致冲突问题的处理等,我在协助处理这些问题的时候也记录各种问题的解决办法,希望整理后通过教程帮助到更多对Git操作进阶的开发者。 本期教程学习方法分为“掌握基础——稳步进阶——熟悉协作”三个层次。从掌握基础的 Git的推送和拉取开始,以案例进行演示,分析每一个步骤的操作方式和原理,从理解Git 工具的操作到学会代码存储结构、演示不同场景下Git遇到问题的不同处理方案。循序渐进让同学们掌握Git工具在团队协作中的整体协作流程。 在教程中会通过大量案例进行分析,案例会模拟在工作中遇到的问题,从最基础的代码提交和拉取、代码冲突解决、代码仓库的数据维护、Git服务端搭建等。为了让同学们容易理解,对Git简单易懂,文章中详细记录了详细的操作步骤,提供大量演示截图和解析。在教程的最后部分,会从提升团队整体效率的角度对Git工具进行讲解,包括规范操作、Gitlab的搭建、钩子事件的应用等。 为了让同学们可以利用碎片化时间来灵活学习,在教程文章中大程度降低了上下文的依赖,让大家可以在工作之余进行学习与实战,并同时掌握里面涉及的Git不常见操作的相关知识,理解Git工具在工作遇到的问题解决思路和方法,相信一定会对大家的前端技能进阶大有帮助。

计算机组成原理算法实现

计算机组成原理算法实现,能够实现定点小数的机器数表示、定点小数的变形补码加减运算、定点小数的原码一位乘法运算和浮点数的加减运算。

为linux系统设计一个简单的二级文件系统

实验目的: 通过一个简单多用户文件系统的设计,加深理解文件系统的内部功能及内部实现。 实验要求: 为linux系统设计一个简单的二级文件系统。要求做到以下几点: (1)可以实现下列几条命令(至少4条)

几率大的Redis面试题(含答案)

本文的面试题如下: Redis 持久化机制 缓存雪崩、缓存穿透、缓存预热、缓存更新、缓存降级等问题 热点数据和冷数据是什么 Memcache与Redis的区别都有哪些? 单线程的redis为什么这么快 redis的数据类型,以及每种数据类型的使用场景,Redis 内部结构 redis的过期策略以及内存淘汰机制【~】 Redis 为什么是单线程的,优点 如何解决redis的并发竞争key问题 Red...

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

本课程适合CCNA或HCNA网络小白同志,高手请绕道,可以直接学习进价课程。通过本预科课程的学习,为学习网络工程师、思科CCNA、华为HCNA这些认证打下坚实的基础! 重要!思科认证2020年2月24日起,已启用新版认证和考试,包括题库都会更新,由于疫情原因,请关注官网和本地考点信息。题库网络上很容易下载到。

2019全国大学生数学建模竞赛C题原版优秀论文

2019全国大学生数学建模竞赛C题原版优秀论文,PDF原版论文,不是图片合成的,是可编辑的文字版。共三篇。 C044.pdf C137.pdf C308.pdf

土豆SDK(Java版)-非官方

由于土豆SDK一直建设中,最近几天抽空写了一套java的SDK。包含了现有的所有请求协议。本套SDK中仅提供了oAuth的方式(引用oAuth.net的java版示例),并没有在框架中实现,涉及到登录

Android小项目——新闻APP(源码)

Android小项目——新闻APP(源码),一个很简单的可以练手的Android Demo Ps:下载之前可以先看一下这篇文章——https://blog.csdn.net/qq_34149526/a

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

相关热词 c# 解析cad c#数字格式化万 c#int转byte c#格式化日期 c# wpf 表格 c# 实现ad域验证登录 c#心跳包机制 c#使用fmod.dll c#dll vb 调用 c# outlook
立即提问
相关内容推荐