如何获得时间段实际上徘徊的时间?
答案 0 :(得分:3)
找到了解决方案:
fullcalendar中的这个选项对我有用
viewDisplay: function( view ) {
$('.fc-minor').mouseenter(
function() { $('#myTime').html($(this).children('th').html());
});
}
答案 1 :(得分:2)
我在我的 vue 项目中针对每个单元格的“data-date”属性使用了这个库的 vue 组件,在此评论时使用最新版本 5.8.0。当您将鼠标悬停在日历对象上时,您可以对日历对象执行类似操作,然后在工具提示中或在页面上的任何位置使用日期值(首先使用诸如 moment.js 之类的内容转换为您的时间格式)。
private: System::Void newToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
try
{
OpenFileDialog^ ofd = gcnew OpenFileDialog();
ofd->Filter = "HPL Materials(*.mat)|*.mat";
if (ofd->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
String^ path = gcnew String(ofd->FileName);
std::wstring directory = SystemToWide(System::IO::Path::GetDirectoryName(path) + "\\");
HplMaterial.setFileDirectory(directory);
HplMaterial.setMaterialPath(SystemToWide(path));
HPLMatReader::read(HplMaterial, SystemToWide(path));
textBox1->Text = WideToSystem(HplMaterial.getDiffuse());
textBox2->Text = WideToSystem(HplMaterial.getNMap());
textBox3->Text = WideToSystem(HplMaterial.getSpecular());
textBox4->Text = WideToSystem(HplMaterial.getHeight());
textBox5->Text = WideToSystem(HplMaterial.getAlpha());
textBox6->Text = WideToSystem(HplMaterial.getIllumination());
textBox7->Text = WideToSystem(HplMaterial.getMaterialPath());
textBox8->Text = WideToSystem(HplMaterial.getFileDirectory() + HplMaterial.getDiffuse());
IMGReader IWICReader((HplMaterial.getFileDirectory() + HplMaterial.getDiffuse()).c_str());
pictureBox1->Image = pictureBox1->Image->FromHbitmap((IntPtr)IWICReader.IWICBitmapToHBITMAP());
HplMaterial.setResolution(IWICReader.getBitmapHeight(), IWICReader.getBitmapWidth());
label9->Text = WideToSystem(HplMaterial.getMaterialRes());
label7->Text = WideToSystem(HplMaterial.getPhysMaterial());
}
}
catch (const std::exception& ex)
{
MessageBox::Show(StdToSys(ex.what()), "Error", MessageBoxButtons::OK, MessageBoxIcon::Error);
}
}