首页 \ 问答 \ 沿莫代尔移动不工作(Move along Modal dont' work)

沿莫代尔移动不工作(Move along Modal dont' work)

我试图沿着我创建的模态div移动,但不工作。

检查我的脚本jquery:

 <script>
    $("#mytabs").on('click',function() {
        $(this).tab('show');
    });

    </script>

HTML / Botstrap:

 <div id="myModal" class="modal fade" role="dialog">
              <div class="modal-dialog">
                <!-- Modal content-->
                <div class="modal-content">
                  <div class="modal-header">
                <!--    <button type="button" class="close" data-dismiss="modal">&times;</button> !-->
                    <h4 class="modal-title">Authentication</h4>
                  </div>
                  <div class="modal-body">
                    <ul class="nav nav-tabs"  id="myTab">
                                                <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Login</span>
                                            <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Register</span>
                                            </ul>
                                            <!-- Tab panes -->
                                            <div class="tab-content">
                                                <div class="tab-pane active" id="LoginTab">

......

     <div class="tab-pane" id="RegistrationTab">

I'm trying to move along the modal divs i have created but don't work.

Check my script for jquery:

 <script>
    $("#mytabs").on('click',function() {
        $(this).tab('show');
    });

    </script>

html/Botstrap:

 <div id="myModal" class="modal fade" role="dialog">
              <div class="modal-dialog">
                <!-- Modal content-->
                <div class="modal-content">
                  <div class="modal-header">
                <!--    <button type="button" class="close" data-dismiss="modal">&times;</button> !-->
                    <h4 class="modal-title">Authentication</h4>
                  </div>
                  <div class="modal-body">
                    <ul class="nav nav-tabs"  id="myTab">
                                                <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Login</span>
                                            <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Register</span>
                                            </ul>
                                            <!-- Tab panes -->
                                            <div class="tab-content">
                                                <div class="tab-pane active" id="LoginTab">

......

     <div class="tab-pane" id="RegistrationTab">

原文:https://stackoverflow.com/questions/48127204
更新时间:2023-10-14 08:10

最满意答案

如果您使用Visual Studio,则可以在解决方案中添加对项目的引用,如此处引用测试项目中的控制台应用程序

在这里输入图像描述


If you're using Visual Studio you can add references to Projects within the solution as here referencing a console application from a test project

enter image description here

相关问答

更多
  • 在玩引用时,我注意到无论我从列表中选择什么NUnit框架,当我关闭项目属性窗口并再次打开它时,我看到了对可移植 NUnit框架的引用。 解决方案管理器中引用列表中的工具提示还显示包含单词“portable”的路径。 并且看起来这个可移动框架有些东西是测试运行者不喜欢的。 由于我不需要这个可移植框架,我试图专门添加4.5框架。 它没用。 无论我选择什么,便携式框架都会弹出! 所以我决定采用简单的方法并卸载NUnit,然后使用“自定义”安装重新安装它,并取消选择可移植框架。 像魅力一样工作! 现在,当我添加NU ...
  • 通常,单元测试涉及到一个类的公共接口,只要从客户端的角度来看,结果是正确的,实现是无关紧要的。 因此,NUnit不提供测试非公开成员的任何机制。 Generally, unit testing addresses a class's public interface, on the theory that the implementation is immaterial, so long as the results are correct from the client's point of view. ...
  • 好,我知道了... 我没有单个* .nunit项目文件,而是每个测试程序集都需要一个* .config文件。 这样配置将始终加载。 Ok I got it... Instead of having a single *.nunit project file I need to have a *.config file per tests assembly. This way the configuration will be always loaded.
  • 如果您使用Visual Studio,则可以在解决方案中添加对项目的引用,如此处引用测试项目中的控制台应用程序 If you're using Visual Studio you can add references to Projects within the solution as here referencing a console application from a test project
  • 如果您错过了它,现在有一个可用于MonoTouch的NUnitLite运行器,它适用于UI不可知代码并在设备(或模拟器)上执行。 请参阅: 适用于iOS的.NET单元测试运行器 In case you missed it, there is now a NUnitLite runner available for MonoTouch which is designed to work for UI agnostic code and executed on devices (or simulator). S ...
  • 检查是要测试的类的可访问性。 他们必须被标记为公开的,否则你的测试项目将无法看到他们加载它们。 让您的类公开的另一种方法是在EXE中使用InternalsVisibleTo属性,并授予对测试项目DLL的访问权限。 而不是公开的,你只需要将它们标记为内部。 在EXE的AssemblyInfo.cs中: [assembly: InternalsVisibleTo( "Project.Tests" )] 引用EXE而不是用于测试的DLL没有问题(从技术上讲,反正应用程序架构是另一回事) Check is t ...
  • 好的,现在我知道问题是什么。 在64位计算机上,如果要使用NUnit GUI,则必须使用nunit-x86.exe程序; 如果你想在运行NUnit GUI时使用你的扩展,那么它需要3个特定的DLL( nunit.core.dll , nunit.core.interfaces.dll , nunit.util.dll )位于C:\Program Files(x86)\NUnit2.6.4\...的lib文件夹中C:\Program Files(x86)\NUnit2.6.4\... 这3个DLL与在Visu ...
  • 最后解决了这个问题,这是我自己的愚蠢错误。 感谢DevOps建议通过MSBuild日志,它帮助我找到了问题。 实际的DLL没有被检入源代码控制,因为添加测试项目的开发机器有一个全局忽略文件来忽略所有DLL。 所以我认为它就在那里,但它只是.xml文件,我误读了它。 无论如何,它现在构建并运行测试。 感谢大家的帮助 Finally fixed the issue and it was my own stupid mistake. Thanks to DevOps for suggesting going th ...
  • 调试 - >例外。 检查“Thrown”以查找要中断的异常类(可能是“Common Language Runtime Exceptions”)。 Debug->Exceptions. Check "Thrown" for the class of exceptions that you want to break on (likely "Common Language Runtime Exceptions").
  • 运行NUnit 3测试有各种不同的方法...... 首先,教程说从VS可以进入测试 - > Windows - >测试资源管理器来运行测试。 要使其工作,您需要安装“NUnit3测试适配器”。 通过Visual Studio中的“ Tools>Extensions and Updates进行安装。 确保获得v3适配器而不是v2适配器 - 它们是单独的扩展。 其次,v3没有GUI,所以这是不可能的。 目前正在开发中! 跟着它的进展: 这里 第三,教程提到了NUnit的控制台版本。 这可能是最常规的方法。 控制 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)