- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试删除网站完整日历中的一个事件。但是每次我点击按钮不删除时,我都会收到消息未定义
,我转到控制台并得到出现以下错误:
我尝试根据我的研究添加此脚本:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
})
但仍然遇到同样的错误
我也尝试添加这行代码:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
但这对 .
没有影响。这是我的 caledar.blade.php 类:
<!doctype html>
<html lang="{{ config('calendar') }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<title>Full Calendar</title>
{!! Html::style('vendor2/seguce92/bootstrap/css/bootstrap.min.css') !!}
{!! Html::style('vendor2/seguce92/fullcalendar/fullcalendar.min.css') !!}
{!! Html::style('vendor2/seguce92/bootstrap-datetimepicker/css/bootstrap-material-datetimepicker.css') !!}
{!! Html::style('vendor2/seguce92/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css') !!}
</head>
<div id='app'></div>
<div class='container'></div>
<div class="navbar navbar-inverse" style="color:#fff">
<div class="navbar-inner" >
<!-- Branding Image -->
<div id="app">
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
@if (Auth::guest())
@else
@endif
<!-- Collapsed Hamburger -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Branding Image -->
<a class="navbar-brand" href="{{ url('/') }}">
{{ config('app.name', 'Laravel') }}
</a>
</div>
<div class="collapse navbar-collapse" id="app-navbar-collapse">
<!-- Left Side Of Navbar -->
<ul class="nav navbar-nav">
@if (Auth::guest())
@else
@endif
<li>
<div class="for-group" style="padding-top:10px;">
<input type="text" id="searching_for" placeholder="Search for a user" style="width: 300px;" class="form-control">
</div>
</li>
</ul>
<a class="navbar-brand" href="{{ url('/front') }}">
{{ config('front', 'Nearby') }}
</a>
<a class="navbar-brand" href="{{ url('/suggest') }}">
{{ config('suggest', 'Suggest Me') }}
</a>
<a class="navbar-brand" href="{{ url('/calendar') }}">
{{ config('calendar', 'Events') }}
</a>
<a class="navbar-brand" href="{{ url('/home') }}">
{{ config('home', 'Home') }}
</a>
<!-- Right Side Of Navbar -->
<ul class="nav navbar-nav navbar-right">
<!-- Authentication Links -->
@if (Auth::guest())
<li><a href="{{ route('login') }}">Login</a></li>
<li><a href="{{ route('register') }}">Register</a></li>
@else
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
{{ Auth::user()->name }} <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{url('/home')}}"><i class="fa fa-btn fa-cogs"></i>Home</a></li>
<li><a href="{{url('/profile/'.Auth::user()->id)}}"><i class="fa fa-btn fa-user"></i>My Profile</a></li>
<li><a href="{{url('/settings')}}"><i class="fa fa-btn fa-cogs"></i>Settings</a></li>
<li><a href="{{url('/front')}}"><i class="fa fa-btn fa-cogs"></i>Map</a></li>
<li>
<a href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
Logout
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
</li>
</ul>
</li>
@endif
</ul>
</div>
</div>
</nav>
@yield('content')
</div>
</div>
</div>
{{ Form::open(['route' => 'user.events.store', 'method' => 'post', 'role' => 'form']) }}
<div id="responsive-modal" class="modal fade" tabindex="-1" data-backdrop="static"->
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4>Registration of new Event</h4>
</div>
<div class="modal-body">
<div class="form-group">
{{Form::label('title','Title') }}
{{Form::text('title',old('title'),['class' => 'form-control'])}}
</div>
<div class="form-group">
{{Form::label('date_start','Date Start') }}
{{Form::text('date_start',old('date_start'),['class' => 'form-control','readonly'=>'true'])}}
</div>
<div class="form-group">
{{Form::label('time_start','Time Start') }}
{{Form::text('time_start',old('time_start'),['class' => 'form-control'])}}
</div>
<div class="form-group">
{{Form::label('date_end','Time Finish') }}
{{Form::text('date_end',old('date_end'),['class' => 'form-control'])}}
</div>
<div class="form-group">
{{Form::label('color','COLOR') }}
<div class="input-group colorpicker">
{{ Form::text('color',old('color'),['class' => 'form-control']) }}
<span class ="input-group-addon">
<i></i>
</span>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
{!! Form::submit('Save',['class' => 'btn-btn-success'])!!}
</div>
</div>
</div>
</div>
{{Form::close()}}
<div id='calendar'></div>
<div id="modal-event" class="modal fade" tabindex="-1" data-backdrop="static"->
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4>Details of new Event</h4>
</div>
<div class="modal-body">
<div class="form-group">
{{Form::label('_title','Title') }}
{{Form::text('_title',old('_title'),['class' => 'form-control'])}}
</div>
<div class="form-group">
{{Form::label('_date_start','Date Start') }}
{{Form::text('_date_start',old('_date_start'),['class' => 'form-control','readonly'=>'true'])}}
</div>
<div class="form-group">
{{Form::label('_time_start','Time Start') }}
{{Form::text('_time_start',old('_time_start'),['class' => 'form-control'])}}
</div>
<div class="form-group">
{{Form::label('_date_end','Time Finish') }}
{{Form::text('_date_end',old('_date_end'),['class' => 'form-control'])}}
</div>
<div class="form-group">
{{Form::label('_color','COLOR') }}
<div class="input-group colorpicker">
{{ Form::text('_color',old('_color'),['class' => 'form-control']) }}
<span class ="input-group-addon">
<i></i>
</span>
</div>
</div>
</div>
<div class="modal-footer">
<a id="delete" data-href="{{url('events')}}"data-id="" class="btn btn-danger">Delete</a>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
{!! Form::submit('Update',['class' => 'btn btn-success'])!!}
</div>
</div>
</div>
</div>
</body>
{!! Html::script('vendor2/seguce92/jquery.min.js') !!}
{!! Html::script('vendor2/seguce92/bootstrap/js/bootstrap.min.js') !!}
{!! Html::script('vendor2/seguce92/fullcalendar/lib/moment.min.js') !!}
{!! Html::script('vendor2/seguce92/fullcalendar/fullcalendar.min.js') !!}
{!! Html::script('vendor2/seguce92/bootstrap-datetimepicker/js/bootstrap-material-datetimepicker.js') !!}
{!! Html::script('vendor2/seguce92/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js') !!}
<script>
var BASEURL="{{url('/')}}";
$(document).ready(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
})
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
navLinks: true, // can click day/week names to navigate views
editable: true,
selectable:true,
selectHelper:true,
select:function(start){
start = moment(start.format());
$('#date_start').val(start.format('YYYY-MM-DD'));
$('#responsive-modal').modal('show');
},
events: BASEURL+'/events',
eventClick: function(event, jsEvent,view){
var date_start = $.fullCalendar.moment(event.start).format('YYYY-MM-DD')
var time_start = $.fullCalendar.moment(event.start).format('hh:mm:ss');
var date_end = $.fullCalendar.moment(event.start).format('YYYY-MM-DD hh:mm:ss');
$('#modal-event #delete').attr('data-id',event.id);
$('#modal-event #_title').val(event.title);
$('#modal-event #_date_start').val(date_start);
$('#modal-event #_time_start').val(time_start);
$('#modal-event #_date_end').val(date_end);
$('#modal-event #_color').val(event.color);
$('#modal-event').modal('show');
}
});
});
$('.colorpicker').colorpicker();
$('#time_start').bootstrapMaterialDatePicker({
date:false,
shortTime: false,
format: 'HH:mm:ss'
});
$('#date_end').bootstrapMaterialDatePicker({
date:true,
shortTime: false,
format: 'YYYY-MM-DD HH:mm:ss'
});
$('#delete').on('click', function(){
var x = $(this);
var delete_url = x.attr('data-href')+'/'+x.attr('data-id');
$.ajax({
url:delete_url,
type:'Delete',
success: function(result){
alert(result.message);
},
error: function(result){
alert(result.message);
}
});
});
</script>
</html>
这是我的错误日志(今天的事件):
192.168.1.7 - - [10/Jul/2017:13:19:33 +0100] "GET / HTTP/1.1" 200 2586
192.168.103.1 - - [10/Jul/2017:13:19:52 +0100] "GET / HTTP/1.1" 200 2592
192.168.10.1 - - [10/Jul/2017:13:19:43 +0100] "GET / HTTP/1.1" 200 2590
192.168.56.1 - - [10/Jul/2017:13:19:45 +0100] "GET / HTTP/1.1" 200 2588
192.168.103.1 - - [10/Jul/2017:13:19:50 +0100] "GET / HTTP/1.1" 200 2590
192.168.1.7 - - [10/Jul/2017:13:19:38 +0100] "GET / HTTP/1.1" 200 2588
192.168.10.1 - - [10/Jul/2017:13:19:41 +0100] "GET / HTTP/1.1" 200 2588
192.168.56.1 - - [10/Jul/2017:13:19:47 +0100] "GET / HTTP/1.1" 200 2590
fe80::c18:701:c2b7:3d43 - - [10/Jul/2017:13:19:55 +0100] "GET / HTTP/1.1" 200 2646
fe80::c18:701:c2b7:3d43 - - [10/Jul/2017:13:19:56 +0100] "GET / HTTP/1.1" 200 2648
fe80::1510:b6c4:b641:3086 - - [10/Jul/2017:13:19:58 +0100] "GET / HTTP/1.1" 200 2646
fe80::1510:b6c4:b641:3086 - - [10/Jul/2017:13:19:59 +0100] "GET / HTTP/1.1" 200 2648
fe80::b58d:e8c4:8757:9de3 - - [10/Jul/2017:13:20:01 +0100] "GET / HTTP/1.1" 200 2646
fe80::b58d:e8c4:8757:9de3 - - [10/Jul/2017:13:20:02 +0100] "GET / HTTP/1.1" 200 2648
fe80::d524:23aa:32e3:3027 - - [10/Jul/2017:13:20:04 +0100] "GET / HTTP/1.1" 200 2646
fe80::d524:23aa:32e3:3027 - - [10/Jul/2017:13:20:05 +0100] "GET / HTTP/1.1" 200 2648
fe80::c18:701:c2b7:3d43 - - [10/Jul/2017:13:20:06 +0100] "GET /HNAP1/ HTTP/1.1" 400 444
fe80::1510:b6c4:b641:3086 - - [10/Jul/2017:13:20:06 +0100] "GET /HNAP1/ HTTP/1.1" 400 446
fe80::b58d:e8c4:8757:9de3 - - [10/Jul/2017:13:20:07 +0100] "GET /HNAP1/ HTTP/1.1" 400 444
fe80::d524:23aa:32e3:3027 - - [10/Jul/2017:13:20:07 +0100] "GET /HNAP1/ HTTP/1.1" 400 446
127.0.0.1 - - [10/Jul/2017:14:21:44 +0100] "GET / HTTP/1.1" 200 2584
127.0.0.1 - - [10/Jul/2017:14:21:47 +0100] "GET /favicon.ico HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2017:14:28:29 +0100] "GET /login HTTP/1.1" 200 5704
127.0.0.1 - - [10/Jul/2017:14:28:34 +0100] "GET /css/app.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:28:34 +0100] "GET /css/style.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:28:34 +0100] "GET /js/app.js HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:29:02 +0100] "POST /login HTTP/1.1" 302 336
127.0.0.1 - - [10/Jul/2017:14:29:07 +0100] "GET /login HTTP/1.1" 200 5966
127.0.0.1 - - [10/Jul/2017:14:30:43 +0100] "POST /login HTTP/1.1" 302 336
127.0.0.1 - - [10/Jul/2017:14:30:44 +0100] "GET /login HTTP/1.1" 200 5966
127.0.0.1 - - [10/Jul/2017:14:30:53 +0100] "POST /login HTTP/1.1" 302 332
127.0.0.1 - - [10/Jul/2017:14:30:54 +0100] "GET /home HTTP/1.1" 200 11741
127.0.0.1 - - [10/Jul/2017:14:30:55 +0100] "GET /status_images/KznUnppb_eventhomepagepicture.jpg HTTP/1.1" 200 22623
127.0.0.1 - - [10/Jul/2017:14:31:01 +0100] "GET /calendar HTTP/1.1" 200 12596
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/bootstrap/css/bootstrap.min.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/fullcalendar/fullcalendar.min.js HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/bootstrap-datetimepicker/css/bootstrap-material-datetimepicker.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/fullcalendar/fullcalendar.min.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/fullcalendar/lib/moment.min.js HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/jquery.min.js HTTP/1.1" 200 84380
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/bootstrap/js/bootstrap.min.js HTTP/1.1" 200 36868
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:02 +0100] "GET /vendor2/seguce92/bootstrap-datetimepicker/js/bootstrap-material-datetimepicker.js HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:31:03 +0100] "GET /events?start=2017-06-25&end=2017-08-06&_=1499693462700 HTTP/1.1" 200 203
127.0.0.1 - - [10/Jul/2017:14:31:08 +0100] "DELETE /events/2 HTTP/1.1" 500 47304
127.0.0.1 - - [10/Jul/2017:14:33:23 +0100] "GET /vendor2/seguce92/bootstrap/css/bootstrap.min.css.map HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:33:23 +0100] "GET /vendor2/seguce92/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css.map HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2017:14:33:23 +0100] "GET /vendor2/seguce92/jquery.min.map HTTP/1.1" 404 33257
127.0.0.1 - - [10/Jul/2017:14:39:57 +0100] "DELETE /events/2 HTTP/1.1" 500 47304
127.0.0.1 - - [10/Jul/2017:14:43:16 +0100] "GET /calendar HTTP/1.1" 200 12596
127.0.0.1 - - [10/Jul/2017:14:43:18 +0100] "GET /vendor2/seguce92/jquery.min.map HTTP/1.1" 404 33257
127.0.0.1 - - [10/Jul/2017:14:43:18 +0100] "GET /events?start=2017-06-25&end=2017-08-06&_=1499694197455 HTTP/1.1" 200 203
127.0.0.1 - - [10/Jul/2017:14:43:22 +0100] "DELETE /events/2 HTTP/1.1" 500 47304
127.0.0.1 - - [10/Jul/2017:14:51:08 +0100] "GET /calendar HTTP/1.1" 200 12596
127.0.0.1 - - [10/Jul/2017:14:51:09 +0100] "GET /vendor2/seguce92/jquery.min.map HTTP/1.1" 404 33257
127.0.0.1 - - [10/Jul/2017:14:51:10 +0100] "GET /events?start=2017-06-25&end=2017-08-06&_=1499694669503 HTTP/1.1" 500 41648
127.0.0.1 - - [10/Jul/2017:15:11:02 +0100] "GET /calendar HTTP/1.1" 200 12596
127.0.0.1 - - [10/Jul/2017:15:11:04 +0100] "GET /vendor2/seguce92/jquery.min.map HTTP/1.1" 404 33257
127.0.0.1 - - [10/Jul/2017:15:11:05 +0100] "GET /events?start=2017-06-25&end=2017-08-06&_=1499695864126 HTTP/1.1" 200 203
127.0.0.1 - - [10/Jul/2017:15:11:09 +0100] "DELETE /events/2 HTTP/1.1" 500 47304
127.0.0.1 - - [10/Jul/2017:15:20:35 +0100] "GET /calendar HTTP/1.1" 200 12596
127.0.0.1 - - [10/Jul/2017:15:20:36 +0100] "GET /vendor2/seguce92/jquery.min.map HTTP/1.1" 404 33257
127.0.0.1 - - [10/Jul/2017:15:20:37 +0100] "GET /events?start=2017-06-25&end=2017-08-06&_=1499696436403 HTTP/1.1" 500 41648
127.0.0.1 - - [10/Jul/2017:15:20:43 +0100] "GET /calendar HTTP/1.1" 200 12596
127.0.0.1 - - [10/Jul/2017:15:20:45 +0100] "GET /vendor2/seguce92/jquery.min.map HTTP/1.1" 404 33257
127.0.0.1 - - [10/Jul/2017:15:20:46 +0100] "GET /events?start=2017-06-25&end=2017-08-06&_=1499696444995 HTTP/1.1" 200 203
127.0.0.1 - - [10/Jul/2017:15:20:56 +0100] "DELETE /events/2 HTTP/1.1" 500 47304
来自 fiddler 的屏幕截图:
web.php:
Route::get('/calendar', function () {
return view('calendar');
});
Route::resource('events', 'EventsController', ['only' => ['index', 'store', 'update', 'destroy']]);
最佳答案
@taha 是在正确的轨道上,但是你必须添加隐藏字段,Laravel 不会为你做这件事。大多数浏览器不支持DELETE
,因此您需要use method spoofing通过将隐藏字段添加到您的表单中,或者直接添加到 JS 中的 POSTed 数据中,就像您所做的那样:
$.ajax({
url:delete_url,
type:'POST',
data: '_method=DELETE',
success: function(result){
alert(result.message);
},
error: function(result){
alert(result.message);
}
});
另外,请确保您在app/Http/routes.php
中设置了相应的删除路由,例如:
Route::delete('/events/{event}', 'Controller@method');
关于javascript - 当我尝试删除日历中的事件时出现 500(内部服务器错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45014177/
这是我的测试用例。 http://tobeythorn.com/isi/dummy2.svg http://tobeythorn.com/isi/isitest.html 如果我自己打开 svg,内部
这是我的测试用例。 http://tobeythorn.com/isi/dummy2.svg http://tobeythorn.com/isi/isitest.html 如果我自己打开 svg,内部
我正在尝试做类似的事情: SELECT SUM( CASE WHEN ( AND EXISTS(SELECT 1
我想问如何在外部 ng-repeat 内部正确使用内部 ng-repeat: 这意味着你想使用这样的东西: {{milestone.id}} {{
我希望在 wordpress 的仪表板内编辑 css 样式并且如果可能的话不必编辑 php 文件。 我知道至少可以编辑一些属性,所以我希望我可以直接在仪表板中编辑所有属性。 更具体地说如何更改自定义类
我在安装在 windows10 上的 vmware 中的 Ubuntu 上安装了伪分布式独立 hadoop 版本。 我从网上下载了一个文件,复制到ubuntu本地目录/lab/data 我在 ubun
我有一个如下所示的 WHERE 语句: WHERE ((@Value1 IS NULL AND [value1_id] IS NULL) OR [value1_id] = ISNULL(@Va
我有一个如下所示的 WHERE 语句: WHERE ((@Value1 IS NULL AND [value1_id] IS NULL) OR [value1_id] = ISNULL(@Va
在我的一些测试帮助程序代码中,我有一个名为 FakeDbSet(Of T) 的 IDbSet(Of T) 实现,它模拟了许多 EF 行为,但没有实际的数据库。我将类声明为 Friend ,因为我想强制
我正在寻找 Cassandra/CQL 的常见 SQL 习语 INSERT INTO ... SELECT ... FROM ... 的表亲。并且一直无法找到任何以编程方式或在 CQL 中执行此类操作
如何防止内部 while 循环无限运行?问题是,如果没有外部 while 循环,内部循环将毫无问题地运行。我知道它必须对外循环执行某些操作,但我无法弄清楚是什么导致了问题。 import java.u
我正在努力学习更多有关 C++ 的知识,但在国际象棋程序中遇到了一些代码,需要帮助才能理解。我有一个 union ,例如: union b_union { Bitboard b; st
这是我项目网页中的代码片段。这里我想显示用户选择的类别,然后想显示属于该类别的主题。在那里,用户可以拥有多个类别,这没有问题。我可以在第一个 while 循环中打印所有这些类别。问题是当我尝试打印主题
我想知道如何在 swing 中显示内部框架。这意味着,当需要 JFrame 时,通常我所做的是, new MyJFrame().setVisible(true); 假设之前的表单也应该显示。当显示这个
我最近发现了一些有趣的行为,这让我想知道对象如何知道存在哪些全局变量。例如,假设我有一个文件“test.py”: globalVar = 1 toDelete = 2 class Test(objec
我知道它已经在这里得到回答: google maps drag and drop objects into google maps from outside the Map ,但这并不完全是我所需要的
我目前正在学习Javascript DOM和innerHTML,发现在理解innerHTML方面存在一些问题。 这是我的代码:http://jsfiddle.net/hphchan/bfjx1w70/
我构建了一个布局如下的库: lib/ private_class_impl.cc private_class_decl.h public_class_impl.cc include/
我有一个使用 bootstrap 3 的组合 wordpress 网站。它基本上是一个图像网格。当屏幕展开时,它会从三列变为四列。移动时它是一列。 我想出了如何调整图像的顶部和底部边距,但我希望图像的
我正在试用 MSP-EXP430G2 的教程程序,使用 Code Composer Studio 使 LED 闪烁。最初,它有一个闪烁的无限循环: for(;;) // This emp
我是一名优秀的程序员,十分优秀!