答案 0 :(得分:1)
使用
jquery('input').keypress(function (){'body'})
或
jquery('input').keydown(function(){ 'body'; })
当你按任意键时它会触发。
答案 1 :(得分:0)
我会使用'文件' .on虽然比.click()更可靠,但产生相同的最终结果。
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterBuild">
<CallTarget Targets="GenerateMonoSymbols" Condition=" Exists('$(OutputPath)\$(AssemblyName).pdb') " />
</Target>
<Target Name="GenerateMonoSymbols">
<Message Text="$(ProjectName) -> $(TargetPath).mdb" Importance="High" />
<Exec Command="$(MonoMdbGenerator) $(AssemblyName).dll" WorkingDirectory="$(MSBuildProjectDirectory)\$(OutputPath)" />
<CallTarget Targets="CopyDLL" />
</Target>
<Target Name="CopyDLL">
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="$(SolutionDir)..\Assets\Plugins\$(ProjectName)" />
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll.mdb" DestinationFolder="$(SolutionDir)..\Assets\Plugins\$(ProjectName)" />
</Target>